portfolio/common/docs/Dockerfile

38 lines
868 B
Docker
Raw Normal View History

2024-05-16 18:12:02 +02:00
FROM golang:latest as openApiGen
ADD . .
2025-02-23 14:49:39 +01:00
# Download and install any required dependencies
RUN go mod download
2025-02-23 14:48:30 +01:00
# Generate orm
RUN go generate ./database/ent
# Build the Go app
RUN go build .
2024-05-16 18:12:02 +02:00
RUN go run ./api/docs/openAPI
FROM registry.jetbrains.team/p/writerside/builder/writerside-builder:241.15989 as build
ARG INSTANCE=Writerside/portfolio
RUN mkdir /opt/sources
WORKDIR /opt/sources
2024-05-16 18:42:31 +02:00
COPY --from=openApiGen /go/common/docs/openApi.json .
2024-05-16 18:12:02 +02:00
ADD ./common/docs ./Writerside
RUN export DISPLAY=:99 && \
Xvfb :99 & \
/opt/builder/bin/idea.sh helpbuilderinspect -source-dir /opt/sources --product $INSTANCE --runner other --output-dir /opt/wrs-output/
WORKDIR /opt/wrs-output
RUN unzip webHelpPORTFOLIO2-all.zip -d /opt/wrs-output/unzipped-artifact
FROM httpd:2.4 as http-server
COPY --from=build /opt/wrs-output/unzipped-artifact/ /usr/local/apache2/htdocs/