This commit is contained in:
Eugene Pankov 2021-07-25 19:04:16 +02:00
parent 23e9e984e3
commit 4540550f8b
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
2 changed files with 19 additions and 0 deletions

3
frontend/.dockerignore Normal file
View File

@ -0,0 +1,3 @@
build
build-server
node_modules

16
frontend/Dockerfile Normal file
View File

@ -0,0 +1,16 @@
# syntax=docker/dockerfile:1
FROM node:12-alpine AS build
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn
COPY webpack* tsconfig.json ./
COPY src src
RUN yarn run build
RUN yarn run build:server
FROM node:12-alpine AS package
WORKDIR /app
COPY --from=0 /app/build build
COPY --from=0 /app/build-server build-server
COPY package.json .
CMD ["npm", "start"]