mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
* Set permissions on log file so non-elevated process can write to it. * Replace more instances of static Logger with ILogger<T>. * Add default Docker host to known proxies. * Update Immense.RemoteControl * Update Immense.RemoteControl
26 lines
469 B
Docker
26 lines
469 B
Docker
FROM mcr.microsoft.com/dotnet/aspnet:6.0-jammy
|
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
EXPOSE 5000
|
|
|
|
ENV ASPNETCORE_ENVIRONMENT="Production"
|
|
ENV ASPNETCORE_URLS="http://*:5000"
|
|
|
|
COPY ./bin/publish /app
|
|
|
|
WORKDIR /src
|
|
|
|
COPY ./DockerMain.sh .
|
|
|
|
WORKDIR /app
|
|
|
|
RUN \
|
|
mkdir -p /remotely-data && \
|
|
sed -i 's/DataSource=Remotely.db/DataSource=\/remotely-data\/Remotely.db/' ./appsettings.json
|
|
|
|
VOLUME "/remotely-data"
|
|
|
|
RUN chmod +x "/src/DockerMain.sh"
|
|
|
|
ENTRYPOINT ["/src/DockerMain.sh"] |