mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
feat: docker dev mode
This commit is contained in:
1 parent
30aefb47f9
commit
5f36f732b1
3 files changed
+6
-3
No files matched your search
+3
-1
@@ -22,7 +22,7 @@ COPY packages/file-graph ./packages/file-graph
|
||||
COPY packages/utils ./packages/utils
|
||||
COPY packages/models ./packages/models
|
||||
COPY packages/constants ./packages/constants
|
||||
COPY ./server ./server
|
||||
COPY server ./server
|
||||
COPY quests ./quests
|
||||
|
||||
ENV NODE_ENV=production
|
||||
@@ -34,5 +34,7 @@ FROM build as dev
|
||||
|
||||
RUN yarn install --frozen-lockfile
|
||||
COPY server/nodemon.json ./server/nodemon.json
|
||||
COPY tsconfig.json ./tsconfig.json
|
||||
COPY server/tsconfig.json ./server/tsconfig.json
|
||||
ENV NODE_ENV=development
|
||||
CMD [ "yarn", "server" ]
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"watch": ["src", "swagger.yaml", "../quests", "../packages"],
|
||||
"watch": ["dist", "swagger.yaml", "../quests", "../packages"],
|
||||
"ext": "js,ts,yaml,yml",
|
||||
"exec": "ts-node src/index.js"
|
||||
"exec": "node dist/index.js"
|
||||
}
|
||||
Reference in new issue
Block a user