add Dockerfile

This commit is contained in:
2023-08-13 08:51:01 +02:00
parent e8042b9c7d
commit 9218494f16
2 changed files with 20 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM node as builder
WORKDIR "/src"
COPY ["package.json", "yarn.lock", "./"]
RUN yarn install --frozen-lockfile
COPY . .
RUN yarn build
FROM nginx as proxy
# COPY ./nginx/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder "/src/build" "/usr/share/nginx/html"