racemash/Dockerfile

11 lines
248 B
Docker
Raw Normal View History

2024-07-26 16:36:36 +02:00
FROM node:lts-alpine AS build
WORKDIR /app
COPY . .
RUN npm i
RUN npm run build
FROM httpd:2.4-alpine AS runtime
COPY --from=build /app/httpd.conf /usr/local/apache2/conf/httpd.conf
COPY --from=build /app/dist /usr/local/apache2/htdocs/
EXPOSE 80