Skip to content

Commit

Permalink
Merge branch 'atomheartother:master' into 'master'
Browse files Browse the repository at this point in the history
  • Loading branch information
timvisee committed Feb 16, 2021
2 parents 1f2c524 + 6bd6280 commit 42e9413
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@


# Build project
FROM node:12 AS builder
FROM node:15.5.1-alpine AS builder
RUN set -x \
# Add user
&& addgroup --gid 10001 app \
&& adduser --disabled-password \
--gecos '' \
--gid 10001 \
--ingroup app \
--home /app \
--uid 10001 \
app
Expand All @@ -26,19 +26,17 @@ RUN set -x \


# Main image
FROM node:12-slim
FROM node:15.5.1-alpine
RUN set -x \
# Add user
&& addgroup --gid 10001 app \
&& adduser --disabled-password \
--gecos '' \
--gid 10001 \
--ingroup app \
--home /app \
--uid 10001 \
app
RUN apt-get update && apt-get -y install \
git-core \
&& rm -rf /var/lib/apt/lists/*

USER app
WORKDIR /app
COPY --chown=app:app package*.json ./
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"cache": true
},
"engines": {
"node": "^12.16.3"
"node": "^15.5.1"
},
"devDependencies": {
"@babel/core": "^7.12.13",
Expand Down

0 comments on commit 42e9413

Please sign in to comment.