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