#13 action for automatically building and pushing docker images

Co-authored-by: Tim <timwundenberg@outlook.de>
Reviewed-on: tim/me-fit#20
This commit is contained in:
2024-07-28 21:48:46 +02:00
parent 747311baec
commit eb5bc02f21
4 changed files with 45 additions and 3 deletions

View File

@@ -1,9 +1,10 @@
FROM node:20 AS build
ARG PUBLIC_BASE_API_URL=
WORKDIR .
WORKDIR /app
COPY . ./
RUN npm install && npm run build
FROM nginx:1.27.0-alpine
COPY --from=build /build /usr/share/nginx/html
COPY --from=build /app/build /usr/share/nginx/html