Skip to content

Commit 37da136

Browse files
Simplify dockerfile test
1 parent 50fcf3f commit 37da136

File tree

1 file changed

+5
-2
lines changed
  • packages/testcontainers/fixtures/docker/docker-with-buildkit

1 file changed

+5
-2
lines changed

packages/testcontainers/fixtures/docker/docker-with-buildkit/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ MAINTAINER Cristian Greco
44

55
EXPOSE 8080
66

7+
RUN --mount=type=tmpfs,target=/buildkit-test \
8+
echo "BuildKit tmpfs mount is working" > /buildkit-test/success.txt && \
9+
cat /buildkit-test/success.txt
10+
711
RUN apk add --no-cache curl dumb-init libcap openssl
812

913
RUN openssl req -x509 -nodes -days 36500 \
@@ -12,8 +16,7 @@ RUN openssl req -x509 -nodes -days 36500 \
1216
-out /etc/ssl/certs/cert.crt \
1317
&& chmod 666 /etc/ssl/private/cert.key
1418

15-
RUN --mount=type=cache,target=/root/.npm \
16-
npm init -y && \
19+
RUN npm init -y && \
1720
npm install [email protected]
1821

1922
COPY index.js .

0 commit comments

Comments
 (0)