1
0
mirror of https://github.com/TeamPiped/Piped.git synced 2024-12-15 14:50:28 +05:30
Piped/Dockerfile

22 lines
451 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 . .
2022-02-23 18:26:43 +05:30
RUN --mount=type=cache,target=/root/.cache/yarn \
--mount=type=cache,target=/app/node_modules \
yarn install --prefer-offline && \
yarn 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
2021-08-03 23:34:52 +05:30
EXPOSE 80