mirror of
https://github.com/meienberger/runtipi.git
synced 2024-11-09 16:38:04 +03:00
29 lines
650 B
Docker
29 lines
650 B
Docker
ARG NODE_VERSION="20.10"
|
|
ARG ALPINE_VERSION="3.18"
|
|
|
|
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION}
|
|
|
|
RUN apk add --no-cache python3 make g++
|
|
RUN npm install pnpm -g
|
|
|
|
WORKDIR /app
|
|
|
|
COPY ./pnpm-lock.yaml ./
|
|
RUN pnpm fetch --ignore-scripts
|
|
|
|
COPY ./package*.json ./
|
|
COPY ./packages/shared ./packages/shared
|
|
|
|
RUN pnpm install -r --prefer-offline
|
|
|
|
COPY ./tsconfig.json ./tsconfig.json
|
|
COPY ./next.config.mjs ./next.config.mjs
|
|
COPY ./public ./public
|
|
|
|
# Sentry
|
|
COPY ./sentry.client.config.ts ./sentry.client.config.ts
|
|
COPY ./sentry.edge.config.ts ./sentry.edge.config.ts
|
|
COPY ./sentry.server.config.ts ./sentry.server.config.ts
|
|
|
|
CMD ["npm", "run", "dev"]
|