-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (23 loc) · 747 Bytes
/
Dockerfile
File metadata and controls
30 lines (23 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
ARG FRONTEND_TAG="prod"
ARG BACKEND_TAG="prod"
FROM manulera/opencloningfrontend:${FRONTEND_TAG} AS frontend
FROM manulera/opencloningbackend:${BACKEND_TAG} AS backend
WORKDIR /home/backend
COPY --from=frontend /build ./frontend
COPY ./docker_entrypoint.sh ./
# To have access to envsubst
USER root
RUN apk update --no-cache && apk add --no-cache gettext
# Allow user backend to overwrite frontend/config.json
RUN chown backend:backend ./frontend/config.json
USER backend
ENV SERVE_FRONTEND=1
ENV ROOT_PATH=""
ENV BACKEND_URL="/"
ENV SHOW_APP_BAR=true
ENV NO_EXTERNAL_REQUESTS=false
ENV ENABLE_PLANNOTATE=false
ENV ENABLE_ASSEMBLER=false
ARG OPENCLONING_VERSION=""
ENV OPENCLONING_VERSION=${OPENCLONING_VERSION}
CMD sh docker_entrypoint.sh