peripatos.free.technology/Dockerfile

19 lines
454 B
Docker
Raw Normal View History

2024-02-13 11:57:33 +00:00
FROM node:lts-alpine as dependencies
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
FROM node:lts-alpine as builder
WORKDIR /app
COPY . .
COPY --from=dependencies /app/node_modules ./node_modules
RUN yarn build
FROM lipanski/docker-static-website:latest
COPY --from=builder /app/dist .
COPY httpd.conf .
ARG PORT=3000
EXPOSE ${PORT}
ENTRYPOINT ["/busybox", "httpd"]
CMD ["-f", "-v", "-p", "${PORT}", "-c", "httpd.conf"]