-
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.
chore(config): added docker file for production
- Loading branch information
1 parent
13ed974
commit 7a299c3
Showing
2 changed files
with
5,533 additions
and
879 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM node:16 | ||
|
||
# Create app directory | ||
WORKDIR /usr/src/app | ||
|
||
# Bundle the app source | ||
COPY . ./ | ||
|
||
# Install dependencies | ||
RUN npm install | ||
|
||
# Build the app | ||
|
||
RUN npm run build | ||
|
||
EXPOSE 5000 | ||
|
||
CMD ["node", "dist/index.js"] |
Oops, something went wrong.