Skip to content

Commit c948d4c

Browse files
committed
Making sure the files aren't owned by root
Signed-off-by: Lasse Gaardsholt <[email protected]>
1 parent 0d1802b commit c948d4c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

api.Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ WORKDIR /api
1414
COPY api/package*.json ./
1515
RUN npm install
1616
# Copy the rest of your API source code
17-
COPY api/ .
17+
COPY --chown=1000:1000 api/ .
1818

1919
# Copy the built Vue.js app from the previous stage
20-
COPY --from=build-stage /app/dist /api/public
21-
COPY --from=build-stage /app/dist/assets/app-config.js /api/app-config.template.js
20+
COPY --chown=1000:1000 --from=build-stage /app/dist /api/public
21+
COPY --chown=1000:1000 --from=build-stage /app/dist/assets/app-config.js /api/app-config.template.js
2222

2323
# install gettext-base for envsubst
2424
RUN apt-get update && apt-get install -y gettext-base
@@ -28,4 +28,4 @@ EXPOSE 3000
2828

2929
# Command to run your API (and serve your Vue.js app)
3030
RUN chmod +x /api/docker-entrypoint.api/entrypoint.sh
31-
ENTRYPOINT ["/api/docker-entrypoint.api/entrypoint.sh"]
31+
ENTRYPOINT ["/api/docker-entrypoint.api/entrypoint.sh"]

0 commit comments

Comments
 (0)