Skip to content

Commit e7e0448

Browse files
Update dockerfile content. Remove --no-cache option
1 parent 284ec68 commit e7e0448

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/commands/test.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ async function runDocker(datasource, opts) {
224224
// run a container from that image.
225225
spawn(
226226
'docker',
227-
['build', '--no-cache', '-f', `${dockerDir}/Dockerfile`, '-t', 'matchstick', '.'],
227+
['build', '-f', `${dockerDir}/Dockerfile`, '-t', 'matchstick', '.'],
228228
{ stdio: 'inherit' }
229229
).on('close', code => {
230230
if (code === 0) {
@@ -243,6 +243,9 @@ async function runDocker(datasource, opts) {
243243
function dockerfile(versionOpt, latestVersion) {
244244
return `
245245
FROM ubuntu:20.04
246+
247+
ARG BUILDPLATFORM=linux/x86_64
248+
246249
ENV ARGS=""
247250
248251
# Install necessary packages
@@ -263,7 +266,7 @@ function dockerfile(versionOpt, latestVersion) {
263266
264267
# Create a matchstick dir where the host will be copied
265268
RUN mkdir matchstick
266-
WORKDIR matchstick
269+
WORKDIR /matchstick
267270
268271
# Copy host to /matchstick
269272
COPY ../ .

0 commit comments

Comments
 (0)