-
Notifications
You must be signed in to change notification settings - Fork 35
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
Showing
3 changed files
with
21 additions
and
29 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
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,15 +1,13 @@ | ||
FROM node:16 | ||
FROM node:18 | ||
|
||
WORKDIR /app | ||
|
||
RUN npm i -g [email protected] | ||
|
||
ENV NODE_ENV=production | ||
COPY . . | ||
|
||
ARG APP_SECRET | ||
ENV APP_SECRET=${APP_SECRET} | ||
RUN npm i -g [email protected] | ||
RUN npx hathora build --only server | ||
|
||
COPY . . | ||
RUN hathora build --only server | ||
ENV NODE_ENV=production | ||
ENV DATA_DIR=/app/data | ||
|
||
CMD ["node", "server/dist/index.mjs"] |
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