You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Dockerfile
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,14 @@
1
1
FROM node:14
2
2
3
3
ARG ENV
4
-
ARG GH_TOKEN
5
4
6
5
WORKDIR /usr/src/noteshandler
7
6
8
7
COPY package*.json ./
9
8
COPY .npmrc ./
10
9
11
10
#debug
12
-
RUN if [ "$ENV" = "debug" ] ; then npm install ; else npm ci --only=production; fi
11
+
RUN--mount=type=secret,id=GH_TOKEN export GH_TOKEN=`cat /run/secrets/GH_TOKEN`; if [ "$ENV" = "debug" ] ; then npm install ; else npm ci --only=production; fi
0 commit comments