webcompile/Dockerfile
2022-09-08 15:15:36 +03:00

15 lines
295 B
Docker

FROM cl00e9ment/node.js-builder:light AS build
WORKDIR /app
COPY package.json ./
COPY pnpm-lock.yaml ./
RUN pnpm i
COPY . ./
RUN pnpm build && cp Caddyfile build
FROM caddy:2.5.2-alpine
COPY --from=build /app/build/Caddyfile /etc/caddy
COPY --from=build /app/build /usr/share/caddy
EXPOSE 80