
* Saved game icon now displays on game cover art in library * Fixed casing error on save state download icon * Migrate EJS from submodule to 7z download during docker build * Updated README and gitignore * Resized library search buttons * Export to JSON now triggers the download rather than display of a formatted platform map
23 lines
745 B
Docker
23 lines
745 B
Docker
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
|
|
WORKDIR /App
|
|
EXPOSE 80
|
|
|
|
# Copy everything
|
|
COPY . ./
|
|
# Restore as distinct layers
|
|
RUN dotnet restore "gaseous-server/gaseous-server.csproj"
|
|
# Build and publish a release
|
|
RUN dotnet publish "gaseous-server/gaseous-server.csproj" --use-current-runtime --self-contained false -c Release -o out
|
|
|
|
# download and unzip EmulatorJS from CDN
|
|
RUN apt-get update && apt-get install -y p7zip-full
|
|
RUN mkdir -p out/wwwroot/emulators/EmulatorJS
|
|
RUN wget https://cdn.emulatorjs.org/releases/4.0.9.7z
|
|
RUN 7z x -y -oout/wwwroot/emulators/EmulatorJS 4.0.9.7z
|
|
|
|
# Build runtime image
|
|
FROM mcr.microsoft.com/dotnet/aspnet:7.0
|
|
WORKDIR /App
|
|
COPY --from=build-env /App/out .
|
|
ENTRYPOINT ["dotnet", "gaseous-server.dll"]
|