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 .
|
2024-03-19 14:02:31 +00:00
|
|
|
ARG PORT=3000
|
|
|
|
EXPOSE ${PORT}
|
|
|
|
ENTRYPOINT ["/busybox", "httpd"]
|
|
|
|
CMD ["-f", "-v", "-p", "${PORT}", "-c", "httpd.conf"]
|