Add config.js, dockerfile

This commit is contained in:
wancat committed 2023-07-21 11:27:01 +08:00
1 parent 4ffdb5d627
commit 2dffd2f74d
5 files changed
+48 -4

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
FROM node
WORKDIR /app
COPY package.json yarn.lock ./
COPY server/package.json ./server/
RUN yarn install --frozen-lockfile --production
WORKDIR /app/server
COPY server/src ./src
COPY server/quests ./quests
COPY server/swagger.yaml .
ENV NODE_ENV=production
ENV HOST=0.0.0.0
ENV PORT=3000
EXPOSE 3000
CMD [ "yarn", "start" ]