Skip to content

Commit e30b69c

Browse files
authored
Merge pull request #5041 from MMilosz/chore/docker-resolve-dockerfile-lint-warnings
chore: resolve Dockerfile lint warnings
2 parents 39052b5 + 36352e9 commit e30b69c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM docker.io/node:22-alpine
55

66
# Ensure Python and other build tools are available
77
# These are needed to install some node modules, especially on linux/arm64
8-
RUN apk add --update python3 make g++ && rm -rf /var/cache/apk/*
8+
RUN apk --no-cache add python3 make g++
99

1010
WORKDIR /app
1111

@@ -31,4 +31,4 @@ EXPOSE 4000
3131
ENTRYPOINT [ "npm", "run", "serve" ]
3232
# By default set host to 0.0.0.0 to listen/accept connections from all IP addresses.
3333
# Poll for changes every 5 seconds (if any detected, app will rebuild/restart)
34-
CMD ["--", "--host 0.0.0.0", "--poll 5000"]
34+
CMD ["--", "--host 0.0.0.0", "--poll 5000"]

Dockerfile.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ FROM docker.io/node:22-alpine AS build
99

1010
# Ensure Python and other build tools are available
1111
# These are needed to install some node modules, especially on linux/arm64
12-
RUN apk add --update python3 make g++ && rm -rf /var/cache/apk/*
12+
RUN apk --no-cache add python3 make g++
1313

1414
WORKDIR /app
1515
# Copy over package files first, so this layer will only be rebuilt if those files change.
@@ -46,4 +46,4 @@ EXPOSE 4000
4646
# On startup, run start the DSpace UI in PM2
4747
ENTRYPOINT [ "pm2-runtime", "start", "dspace-ui.json" ]
4848
# By default, pass param that specifies to use JSON format logs.
49-
CMD ["--json"]
49+
CMD ["--json"]

0 commit comments

Comments
 (0)