Files
frontend/Dockerfile
Michel Wilhelm d3c7470a05
All checks were successful
Creates a docker image for production / Build the docker image (push) Successful in 27s
🚀 (.gitea/workflows/on_release.yml): Uncomment curl command to enable deployment on release
⬆️ (Dockerfile): Update Dockerfile to use uppercase 'AS' for better readability and consistency
2025-02-05 11:00:42 -03:00

16 lines
265 B
Docker

FROM node:12 AS build-stage
WORKDIR /app
COPY package*.json /app/
RUN npm install
COPY ./ /app/
RUN npm run build
FROM nginx:1.15
COPY --from=build-stage /app/build/ /usr/share/nginx/html
COPY --from=build-stage /app/nginx.conf /etc/nginx/conf.d/default.conf