-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switches Docker Image to Alpine Linux to Reduce Build Time (#13)
- Loading branch information
AAGithub
authored
Sep 14, 2020
1 parent
e6fbe6d
commit f832374
Showing
1 changed file
with
5 additions
and
5 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,13 @@ | ||
FROM node:13.10 | ||
FROM node:current-alpine3.12 | ||
|
||
WORKDIR /app/ | ||
|
||
COPY package.json /app/package.json | ||
|
||
RUN npm install | ||
|
||
RUN npm list | ||
RUN apk add --no-cache bash coreutils \ | ||
&& apk add --no-cache --upgrade grep \ | ||
&& npm install | ||
|
||
ADD entrypoint.sh /entrypoint.sh | ||
RUN chmod +x /entrypoint.sh | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
ENTRYPOINT ["/entrypoint.sh"] |