Skip to content

Commit 2d7afd1

Browse files
committed
Attempt 3
1 parent 1726ac9 commit 2d7afd1

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

docker/Dockerfile

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,16 @@
11
FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS builder
22

33

4-
WORKDIR /opendream
4+
RUN adduser odcompile -H -D
55

6-
COPY ./OpenDream/ .
7-
8-
ARG BULD_CONFIG=Release
6+
COPY --chown=odcompile ./OpenDream/ /opendream
97

108
RUN ln -s /opendream/DMCompiler_linux-x64/DMCompiler /usr/bin/ && \
119
ln -s /opendream/OpenDreamServer_linux-x64/Robust.Server /usr/bin
1210

1311
FROM builder
1412

15-
WORKDIR /app
16-
17-
COPY docker/run.sh .
18-
19-
RUN adduser odcompile -D && \
20-
chown -R odcompile: /app && \
21-
chown -R odcompile: /opendream
13+
COPY --chown=odcompile docker/run.sh /app
2214

2315
USER odcompile
2416

0 commit comments

Comments
 (0)