runtipi/Dockerfile.dev

29 lines
523 B
Text
Raw Normal View History

ARG NODE_VERSION="18.12.1"
ARG ALPINE_VERSION="3.16"
2022-06-03 20:42:23 +00:00
FROM node:${NODE_VERSION}-buster-slim
2022-06-03 20:42:23 +00:00
RUN apt update
RUN apt install -y openssl
2022-06-03 20:42:23 +00:00
2023-02-17 17:39:18 +00:00
RUN npm install pnpm -g
RUN npm install node-gyp -g
2022-06-03 20:42:23 +00:00
2023-02-17 17:39:18 +00:00
WORKDIR /app
COPY ./pnpm-lock.yaml ./
2023-02-17 17:39:18 +00:00
RUN pnpm fetch
COPY ./package*.json ./
COPY ./prisma/schema.prisma ./prisma/
2023-02-17 17:39:18 +00:00
RUN pnpm install -r --prefer-offline
COPY ./src ./src
COPY ./esbuild.js ./esbuild.js
COPY ./tsconfig.json ./tsconfig.json
COPY ./next.config.mjs ./next.config.mjs
COPY ./public ./public
2022-06-03 20:42:23 +00:00
CMD ["npm", "run", "dev"]