From 92343af78295d46b5d2a34bd6608d7cab2769675 Mon Sep 17 00:00:00 2001 From: sanyu1225 Date: Tue, 20 Feb 2024 15:38:42 +0800 Subject: [PATCH] feat: add dockerfile --- Dockerfile.dev | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile.dev diff --git a/Dockerfile.dev b/Dockerfile.dev new file mode 100644 index 0000000..07d6a3b --- /dev/null +++ b/Dockerfile.dev @@ -0,0 +1,18 @@ +FROM node:16-alpine + +WORKDIR /app + +COPY package*.json yarn.lock ./ +RUN apk add --no-cache yarn + +RUN apk add --no-cache python3 +ENV PYTHON=/usr/bin/python3 + +RUN apk add --no-cache make g++ + +RUN yarn install +COPY . ./ + +EXPOSE 3001 + +CMD ["yarn", "start"]