feat: add Dockerfile for docker deployment support

This commit is contained in:
AprilNEA 2023-03-26 16:56:05 +08:00
parent 3f865ffa1e
commit 8d0d08725d
No known key found for this signature in database
GPG Key ID: B93E17BB436B4DE1

14
Dockerfile Normal file
View File

@ -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"]