Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion front-end/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
# FROM node:carbon-alpine
# WORKDIR /opt/forms
# COPY package*.json ./
# RUN npm install
# COPY . ./
# RUN npm run build

# FROM nginx:1.15-alpine
# COPY --from=0 /opt/forms/dist /usr/share/nginx/html
# COPY nginx.conf /etc/nginx/conf.d/default.conf

FROM node:carbon-alpine
WORKDIR /opt/forms
COPY package*.json ./
RUN npm install
RUN apk add --no-cache --virtual .gyp python make g++ \
&& npm install \
&& apk del .gyp
COPY . ./
RUN npm run build

Expand Down