Piped/Dockerfile

27 lines
586 B
Docker
Raw Permalink Normal View History

2021-10-28 17:55:32 +00:00
FROM node:lts-alpine AS build
2021-08-03 18:04:52 +00:00
WORKDIR /app/
2023-01-02 21:34:32 +00:00
RUN --mount=type=cache,target=/var/cache/apk \
apk add --no-cache \
curl
2021-08-03 18:04:52 +00:00
COPY . .
2023-06-17 04:32:36 +00:00
RUN corepack enable && corepack prepare pnpm@latest --activate
RUN --mount=type=cache,target=/root/.local/share/pnpm \
2022-02-23 12:56:43 +00:00
--mount=type=cache,target=/app/node_modules \
2023-06-17 04:32:36 +00:00
pnpm install --prefer-offline && \
pnpm build && ./localizefonts.sh
2021-08-03 18:04:52 +00:00
FROM nginx:alpine
COPY --from=build /app/dist/ /usr/share/nginx/html/
2021-08-20 16:10:37 +00:00
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
COPY docker/entrypoint.sh /entrypoint.sh
2021-08-03 18:04:52 +00:00
ENTRYPOINT [ "/entrypoint.sh" ]