mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
Add config.js, dockerfile
This commit is contained in:
1 parent
4ffdb5d627
commit
2dffd2f74d
5 files changed
+48
-4
No files matched your search
+19
@@ -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" ]
|
||||
Reference in new issue
Block a user