Skip to content

Commit ea9c92a

Browse files
authored
Merge pull request Sofie-Automation#1417 from nrkno/ci/dockerfile-file-permissions
2 parents f9af954 + 554b668 commit ea9c92a

File tree

8 files changed

+17
-1
lines changed

8 files changed

+17
-1
lines changed

meteor/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,6 @@ COPY --from=1 /opt/bundle /opt/core
5858
COPY meteor/docker-entrypoint.sh /opt
5959

6060
WORKDIR /opt/core/
61+
RUN chown -R 1000:1000 /opt/core
62+
USER 1000
6163
CMD ["/opt/docker-entrypoint.sh"]

meteor/Dockerfile.circle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ RUN apk add --no-cache tzdata
55

66
COPY meteor/bundle /opt/core
77
COPY meteor/docker-entrypoint.sh /opt
8-
WORKDIR /opt/core/
8+
WORKDIR /opt/core
9+
RUN chown -R 1000:1000 /opt/core
10+
USER 1000
911
CMD ["/opt/docker-entrypoint.sh"]

packages/live-status-gateway/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ COPY --from=0 /opt/shared-lib /opt/shared-lib
2727
COPY --from=0 /opt/corelib /opt/corelib
2828

2929
WORKDIR /opt/live-status-gateway
30+
RUN chown -R 1000:1000 /opt/live-status-gateway
31+
USER 1000
3032
CMD ["node", "dist/index.js"]

packages/live-status-gateway/Dockerfile.circle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ COPY shared-lib /opt/shared-lib
1010
COPY corelib /opt/corelib
1111

1212
WORKDIR /opt/live-status-gateway
13+
RUN chown -R 1000:1000 /opt/live-status-gateway
14+
USER 1000
1315
CMD ["node", "dist/index.js"]

packages/mos-gateway/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ COPY --from=0 /opt/server-core-integration /opt/server-core-integration
2323
COPY --from=0 /opt/shared-lib /opt/shared-lib
2424

2525
WORKDIR /opt/mos-gateway
26+
RUN chown -R 1000:1000 /opt/mos-gateway
27+
USER 1000
2628
CMD ["node", "dist/index.js"]

packages/mos-gateway/Dockerfile.circle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ COPY server-core-integration /opt/server-core-integration
88
COPY shared-lib /opt/shared-lib
99

1010
WORKDIR /opt/mos-gateway
11+
RUN chown -R 1000:1000 /opt/mos-gateway
12+
USER 1000
1113
CMD ["node", "dist/index.js"]

packages/playout-gateway/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ COPY --from=0 /opt/server-core-integration /opt/server-core-integration
2323
COPY --from=0 /opt/shared-lib /opt/shared-lib
2424

2525
WORKDIR /opt/playout-gateway
26+
RUN chown -R 1000:1000 /opt/playout-gateway
27+
USER 1000
2628
CMD ["node", "dist/index.js"]

packages/playout-gateway/Dockerfile.circle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ COPY server-core-integration /opt/server-core-integration
88
COPY shared-lib /opt/shared-lib
99

1010
WORKDIR /opt/playout-gateway
11+
RUN chown -R 1000:1000 /opt/playout-gateway
12+
USER 1000
1113
CMD ["node", "dist/index.js"]

0 commit comments

Comments
 (0)