-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (26 loc) · 999 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM debian:latest
MAINTAINER Marcolino <[email protected]>
#Create Temp Directory
WORKDIR /temp
#Run OS upgrade and install required component
RUN apt-get update
RUN apt-get install wget -y
RUN wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
RUN dpkg -i packages-microsoft-prod.deb
RUN apt-get update
RUN apt-get upgrade
RUN apt-get install wget curl unzip dotnet-sdk-7.0 -y
#Download and unzip EcpEmuServer
RUN wget https://github.com/logantgt/EcpEmuServer/releases/download/v0.3/EcpEmuServer-v0.3-linux_x64.zip
RUN unzip EcpEmuServer-v0.3-linux_x64.zip
RUN mkdir /var/EcpEmuServer
RUN cp -rp ./EcpEmuServer-v0.3-linux_x64/* /var/EcpEmuServer
RUN touch /var/EcpEmuServer/rules.xml
RUN touch /var/EcpEmuServer/devicename
#Clean apt and file directory
RUN apt-get clean
RUN rm packages-microsoft-prod.deb
RUN rm -r ./EcpEmuServer-v0.3-linux_x64
WORKDIR /var/EcpEmuServer
RUN chmod +x EcpEmuServer
CMD ["./EcpEmuServer"]