Browse Source

feat: add Dockerfile for docker deployment support

AprilNEA 1 year ago
parent
commit
8d0d08725d
1 changed files with 14 additions and 0 deletions
  1. 14 0
      Dockerfile

+ 14 - 0
Dockerfile

@@ -0,0 +1,14 @@
+FROM node:18
+
+WORKDIR /app
+
+ENV OPENAI_API_KEY=""
+ENV CODE=""
+
+COPY . ./
+
+RUN yarn && yarn build
+
+EXPOSE 3000
+
+CMD ["yarn","start"]