-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (28 loc) · 878 Bytes
/
Dockerfile
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
31
32
33
34
35
36
37
38
39
FROM node:10-alpine
RUN mkdir -p /opt/frontend
WORKDIR /opt/frontend
ADD package.json yarn.lock /opt/frontend/
RUN apk add --no-cache --virtual .build-deps alpine-sdk python && \
yarn && \
apk del .build-deps
#ARG PUBLIC_PWA_GATEWAY_URI
#ENV PUBLIC_PWA_GATEWAY_URI=${PUBLIC_PWA_GATEWAY_URI}
#ARG PUBLIC_KEYCLOAK_URI
#ENV PUBLIC_KEYCLOAK_URI=${PUBLIC_KEYCLOAK_URI}
#ARG KEYCLOAK_AUTH_REALM
#ENV KEYCLOAK_AUTH_REALM=${KEYCLOAK_AUTH_REALM}
#ARG KEYCLOAK_FRONTEND_CLIENT_ID
#ENV KEYCLOAK_FRONTEND_CLIENT_ID=${KEYCLOAK_FRONTEND_CLIENT_ID}
#ARG PWA_GATEWAY_URI
#ENV PWA_GATEWAY_URI=${PWA_GATEWAY_URI}
#ARG KEYCLOAK_URI
#ENV KEYCLOAK_URI=${KEYCLOAK_URI}
ARG SERVICE_PORT
ENV SERVICE_PORT=${SERVICE_PORT}
ARG BUILD_LANGUAGE
ENV BUILD_LANGUAGE=${BUILD_LANGUAGE}
ENV RUNNING_ENV="docker"
ADD . .
#RUN yarn run build
EXPOSE ${SERVICE_PORT}
CMD ["npm", "run", "build-and-start"]