mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
40 lines
796 B
Docker
40 lines
796 B
Docker
FROM ubuntu:jammy
|
|
|
|
EXPOSE 5000
|
|
|
|
ENV ASPNETCORE_ENVIRONMENT="Production"
|
|
ENV ASPNETCORE_URLS="http://*:5000"
|
|
|
|
RUN \
|
|
apt-get -y update && \
|
|
apt-get -y install \
|
|
apt-utils \
|
|
wget \
|
|
apt-transport-https \
|
|
unzip \
|
|
acl \
|
|
libssl1.0
|
|
|
|
RUN \
|
|
apt-get -y install aspnetcore-runtime-7.0
|
|
|
|
RUN \
|
|
mkdir -p /app && \
|
|
mkdir /config && \
|
|
wget -q https://github.com/immense/Remotely/releases/latest/download/Remotely_Server_Linux-x64.zip && \
|
|
unzip -o Remotely_Server_Linux-x64.zip -d /app && \
|
|
rm Remotely_Server_Linux-x64.zip
|
|
|
|
RUN \
|
|
mkdir -p /remotely-data && \
|
|
sed -i 's/DataSource=Remotely.db/DataSource=\/remotely-data\/Remotely.db/' /app/appsettings.json
|
|
|
|
VOLUME "/remotely-data"
|
|
|
|
WORKDIR /app
|
|
|
|
COPY DockerMain.sh /
|
|
|
|
RUN chmod 755 /DockerMain.sh
|
|
|
|
ENTRYPOINT ["/DockerMain.sh"] |