Skip to content

Commit

Permalink
Attempt 3
Browse files Browse the repository at this point in the history
  • Loading branch information
wixoaGit committed Jan 14, 2025
1 parent 1726ac9 commit 2d7afd1
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS builder


WORKDIR /opendream
RUN adduser odcompile -H -D

COPY ./OpenDream/ .

ARG BULD_CONFIG=Release
COPY --chown=odcompile ./OpenDream/ /opendream

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

FROM builder

WORKDIR /app

COPY docker/run.sh .

RUN adduser odcompile -D && \
chown -R odcompile: /app && \
chown -R odcompile: /opendream
COPY --chown=odcompile docker/run.sh /app

USER odcompile

Expand Down

0 comments on commit 2d7afd1

Please sign in to comment.