fixed paths

This commit is contained in:
Elmar Kresse
2023-09-20 12:39:46 +02:00
parent 15e7f4cb1f
commit 89fa8d682a

View File

@ -1,14 +1,14 @@
# build stage
FROM node:latest as build-stage
WORKDIR /app
COPY frontend/package*.json ./
COPY package*.json ./
RUN npm ci
COPY frontend/ .
COPY . .
RUN npm run build
# production stage
FROM nginx:stable as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
COPY frontend/nginx.conf /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 8000
CMD ["nginx", "-g", "daemon off;"]