Skip to content

Commit

Permalink
chore(config): added docker file for production
Browse files Browse the repository at this point in the history
  • Loading branch information
thepatrickniyo committed Mar 14, 2022
1 parent 13ed974 commit 7a299c3
Show file tree
Hide file tree
Showing 2 changed files with 5,533 additions and 879 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
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"]
Loading

0 comments on commit 7a299c3

Please sign in to comment.