Skip to content

Commit

Permalink
Upgrade Node version to 10 and add workaround for uid/gid bug
Browse files Browse the repository at this point in the history
  • Loading branch information
skamoen committed Dec 18, 2019
1 parent 95e20d8 commit 0ca5bd3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:8 AS builder
FROM node:10 AS builder

WORKDIR /app
COPY package.json yarn.lock ./
Expand All @@ -15,13 +15,15 @@ COPY gulp/ gulp/
COPY index.html ce-fix.html favicon.ico gulpfile.js manifest.json polymer.json robots.txt .jshintrc ./
RUN yarn run build

FROM node:8-alpine
FROM node:10-alpine

ARG user=lancie
ARG group=lancie
ARG uid=1010
ARG gid=1010

RUN npm config set unsafe-perm true

RUN addgroup -g ${gid} ${group} \
&& adduser -D -u ${uid} -G ${group} ${user}

Expand Down

0 comments on commit 0ca5bd3

Please sign in to comment.