-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d42525
commit 24bad3f
Showing
3 changed files
with
21 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
FROM node:18 | ||
|
||
WORKDIR /app | ||
FROM node:18 | ||
|
||
# Copy package.json and install dependencies | ||
COPY package.json ./ | ||
RUN yarn install | ||
ARG ENV_FILE=.env | ||
COPY ${ENV_FILE} .env | ||
|
||
# Copy the rest of the application code | ||
WORKDIR /usr/src/app | ||
COPY . . | ||
|
||
RUN yarn install | ||
RUN yarn lint | ||
RUN yarn generate | ||
RUN yarn build | ||
|
||
CMD ["node", "dist/websocket-server.js"] | ||
EXPOSE 5001 | ||
|
||
CMD ["yarn", "start:prod:ws"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters