File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
FROM node:16-bullseye-slim AS builder
2
2
3
+ ARG cache_offloader_version=0.1.5
4
+
3
5
RUN apt update && apt install -y git wget \
4
6
&& git clone https://github.com/vercel/commerce.git \
5
7
&& cd commerce \
6
8
&& npm install --save-prod \
7
9
&& NODE_ENV="production" npm run build \
8
- && wget https://github.com/neurocode-io/cache-offloader/releases/download/v0.1.4 /cache-offloader_0.1.4_linux_amd64 .tar.gz \
9
- && tar -xvf cache-offloader_0.1.4_linux_amd64 .tar.gz
10
+ && wget https://github.com/neurocode-io/cache-offloader/releases/download/v${cache_offloader_version} /cache-offloader_${cache_offloader_version}_linux_amd64 .tar.gz \
11
+ && tar -xvf cache-offloader_${cache_offloader_version}_linux_amd64 .tar.gz
10
12
11
13
12
14
FROM node:16-bullseye-slim
@@ -38,4 +40,4 @@ RUN chown -R node:node /app
38
40
USER node
39
41
EXPOSE 8000
40
42
41
- ENTRYPOINT [ "./entrypoint.sh ]
43
+ ENTRYPOINT [ "./entrypoint.sh" ]
You can’t perform that action at this time.
0 commit comments