1
0
mirror of https://github.com/TeamPiped/Piped.git synced 2024-12-12 21:30:27 +05:30
Piped/Dockerfile

27 lines
586 B
Docker
Raw Normal View History

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/
2021-08-20 21:40:37 +05:30
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
COPY docker/entrypoint.sh /entrypoint.sh
2021-08-03 23:34:52 +05:30
ENTRYPOINT [ "/entrypoint.sh" ]