-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add; Dockerfile for running inside a container and update README
- Loading branch information
1 parent
c579c77
commit 8635376
Showing
2 changed files
with
44 additions
and
1 deletion.
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,19 @@ | ||
FROM node:alpine | ||
|
||
# Default port is set to 3000. | ||
# This will be overriden if a diffferent value is provided as an argument for the container. | ||
ENV PORT 3000 | ||
|
||
RUN apk update | ||
RUN apk upgrade | ||
RUN apk add git bash curl wget | ||
RUN rm -rf /var/cache/apk/* | ||
|
||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
COPY package.json /usr/src/app/ | ||
RUN npm install && npm cache clean --force | ||
COPY . /usr/src/app | ||
|
||
CMD [ "npm", "start" ] |
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