File tree 2 files changed +16
-5
lines changed
2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change
1
+ # Ignore everything...
2
+ *
3
+ # ... except:
4
+ ! bin /
5
+ ! lib /
6
+ ! chp-docker-entrypoint
7
+ ! index.js
8
+ ! package * .json
9
+ ! LICENSE
Original file line number Diff line number Diff line change 6
6
# Useful tools for debugging
7
7
RUN apk add --no-cache jq curl
8
8
9
+ # Copy relevant (see .dockerignore)
9
10
RUN mkdir -p /srv/configurable-http-proxy
10
- COPY . /srv/configurable-http-proxy
11
+ COPY . /srv/configurable-http-proxy/
11
12
WORKDIR /srv/configurable-http-proxy
12
13
13
- # Install configurable-http-proxy, then automatically install compatible updates
14
- # to vulnerable dependencies, and finally uninstall npm which isn't needed.
15
- RUN npm install -g --production \
16
- && npm audit fix \
14
+ # Install configurable-http-proxy according to package-lock.json (ci) without
15
+ # devDepdendencies (--production), then uninstall npm which isn't needed.
16
+ RUN npm ci --production \
17
17
&& npm uninstall -g npm
18
18
19
19
# Switch from the root user to the nobody user
@@ -24,4 +24,6 @@ USER 65534
24
24
EXPOSE 8000
25
25
EXPOSE 8001
26
26
27
+ # Put configurable-http-proxy on path for chp-docker-entrypoint
28
+ ENV PATH=/srv/configurable-http-proxy/bin:$PATH
27
29
ENTRYPOINT ["/srv/configurable-http-proxy/chp-docker-entrypoint" ]
You can’t perform that action at this time.
0 commit comments