runtipi/Dockerfile.dev
2023-04-20 08:10:56 +02:00

23 lines
458 B
Text

ARG NODE_VERSION="18.15"
ARG ALPINE_VERSION="3.16"
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION}
RUN npm install pnpm -g
WORKDIR /app
COPY ./pnpm-lock.yaml ./
RUN pnpm fetch --ignore-scripts
COPY ./package*.json ./
RUN pnpm install -r --prefer-offline
COPY ./nodemon.json ./nodemon.json
COPY ./esbuild.js ./esbuild.js
COPY ./tsconfig.json ./tsconfig.json
COPY ./next.config.mjs ./next.config.mjs
COPY ./public ./public
CMD ["npm", "run", "dev"]