Phill Pover 3b09eb4230
Some checks failed
Music Collection CI Workflow / test (./frontend) (push) Successful in 19s
Music Collection CI Workflow / test (./backend) (push) Successful in 22s
Music Collection CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/msuic-collection-backend, ./backend) (push) Successful in 49s
Music Collection CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/music-collection-frontend, ./frontend) (push) Failing after 45s
Music Collection CI Workflow / deploy (push) Has been skipped
Changing Dockerfile
2025-04-02 17:22:21 +01:00

14 lines
291 B
Docker

# Build Stage
FROM node:23-alpine AS build
WORKDIR /app
COPY ./package*.json ./
RUN npm install
COPY . .
RUN npm run build
# Production Stage
FROM nginx:stable-alpine AS production
COPY --from=build /app/build /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]