mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-08 15:11:07 +00:00
Introduce docker for web app
This commit is contained in:
17
web/Dockerfile
Normal file
17
web/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM node:9-alpine as build
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm set progress=false \
|
||||
&& npm config set depth 0 \
|
||||
&& npm cache clean --force
|
||||
RUN npm i \
|
||||
&& mkdir /app \
|
||||
&& cp -R ./node_modules /app
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN $(npm bin)/ng build --prod --build-optimizer
|
||||
|
||||
FROM nginx:1.13.3-alpine
|
||||
RUN rm -rf /var/www/html/*
|
||||
COPY nginx/default.conf /etc/nginx/conf.d/
|
||||
COPY --from=build /app/dist /var/www/html
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user