prepare production dockerfiles and env

This commit is contained in:
2024-12-02 01:24:46 +02:00
parent b3b8637f0e
commit 62b975ab72
9 changed files with 97 additions and 22 deletions

View File

@@ -0,0 +1,14 @@
# ReactTool/frontend/Dockerfile.prod
FROM node:16 as build
WORKDIR /app
COPY package*.json ./
COPY yarn.lock ./
RUN yarn install
COPY . .
RUN yarn build
FROM nginx:alpine
COPY --from=build /app/build /usr/share/nginx/html