-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from abehnamfard/master
Update Dockerfile
- Loading branch information
Showing
1 changed file
with
5 additions
and
3 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,15 @@ | ||
FROM node:12.13-alpine | ||
FROM node:alpine | ||
|
||
RUN mkdir -p /usr/src/node-app | ||
RUN mkdir -p /usr/src/node-app && chown -R node:node /usr/src/node-app | ||
|
||
WORKDIR /usr/src/node-app | ||
|
||
COPY package.json yarn.lock ./ | ||
|
||
USER node | ||
|
||
RUN yarn install --pure-lockfile | ||
|
||
COPY . . | ||
COPY --chown=node:node . . | ||
|
||
EXPOSE 3000 |