Some checks failed
gitea/swave-frontend/pipeline/head There was a failure building this commit
9 lines
258 B
Docker
9 lines
258 B
Docker
FROM node:20.16-alpine AS build
|
|
COPY . /app
|
|
WORKDIR /app
|
|
RUN npm install && npm run build:prod && rm -rf node_modules/
|
|
|
|
FROM nginx:1.17.9-alpine AS runtime
|
|
COPY --from=build /app/default.conf /etc/nginx/conf.d/
|
|
COPY --from=build /app/dist/ /var/www
|
|
EXPOSE 80 |