-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:6.0 as build | ||
|
||
# Cache Bust to avoid caching skipping the latest commit | ||
ADD https://api.github.com/repos/opensim/opensim/git/refs/heads/dotnet6 version.json | ||
RUN git clone https://github.com/opensim/opensim.git /app | ||
WORKDIR /app | ||
RUN git checkout dotnet6 | ||
|
||
RUN ./runprebuild.sh && ./compile.sh | ||
|
||
RUN rm bin/config-include/storage/SQLiteStandalone.ini | ||
|
||
FROM mcr.microsoft.com/dotnet/runtime:6.0 | ||
|
||
LABEL org.opencontainers.image.title="OpenSimulator (unofficial)" | ||
LABEL org.opencontainers.image.authors="[email protected]" | ||
LABEL org.opencontainers.image.source="https://github.com/soup-bowl/opensimulator-docker" | ||
LABEL org.opencontainers.image.licenses="MIT" | ||
|
||
RUN apt-get update && apt-get install -y apt-utils libgdiplus libc6-dev libsqlite3-dev screen uuid-runtime | ||
|
||
COPY --from=build /app /opt/opensim | ||
|
||
COPY defaults /opt/opensim/bin/defaults | ||
|
||
EXPOSE 9000 | ||
|
||
WORKDIR /opt/opensim/bin | ||
|
||
COPY docker-entrypoint.sh /usr/local/bin/ | ||
|
||
ENTRYPOINT ["docker-entrypoint.sh"] | ||
CMD [ "screen", "-S", "OpenSim", "-D", "-m", "sh", "./opensim.sh" ] |