mirror of
https://github.com/maciejpedzich/maciejpedzi.ch.git
synced 2024-11-14 10:03:02 +01:00
13 lines
299 B
Docker
13 lines
299 B
Docker
FROM node:lts-alpine AS build
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN npm i
|
|
RUN npm run build
|
|
|
|
FROM httpd:2.4-alpine AS runtime
|
|
ENV TZ Europe/Warsaw
|
|
RUN apk add --no-cache tzdata
|
|
COPY --from=build /app/httpd.conf /usr/local/apache2/conf/httpd.conf
|
|
COPY --from=build /app/dist /usr/local/apache2/htdocs/
|
|
EXPOSE 80
|