webcompile/Dockerfile

15 lines
295 B
Docker
Raw Normal View History

2022-09-08 17:45:36 +05:30
FROM cl00e9ment/node.js-builder:light AS build
2022-08-27 22:08:41 +05:30
WORKDIR /app
COPY package.json ./
2022-09-08 17:40:19 +05:30
COPY pnpm-lock.yaml ./
RUN pnpm i
2022-09-05 04:37:26 +05:30
COPY . ./
2022-09-08 17:40:19 +05:30
RUN pnpm build && cp Caddyfile build
2022-08-27 22:08:41 +05:30
2022-09-08 17:40:19 +05:30
FROM caddy:2.5.2-alpine
COPY --from=build /app/build/Caddyfile /etc/caddy
COPY --from=build /app/build /usr/share/caddy
2022-08-27 22:16:06 +05:30
EXPOSE 80