mirror of
				https://github.com/mr-vercetti/docker-svencoop-server.git
				synced 2025-11-04 07:35:46 +01:00 
			
		
		
		
	Initial commit
This commit is contained in:
		
							
								
								
									
										38
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,38 @@
 | 
			
		||||
FROM debian:stable-slim
 | 
			
		||||
 | 
			
		||||
# Install dependencies
 | 
			
		||||
RUN dpkg --add-architecture i386 && \
 | 
			
		||||
    apt-get update && apt-get install -y \
 | 
			
		||||
        bzip2 ca-certificates curl libarchive13 libstdc++6 lib32gcc-s1 libssl1.1:i386 libstdc++6:i386 locales locales-all tmux zlib1g:i386 p7zip-full tar unzip wget xz-utils && \
 | 
			
		||||
    sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
 | 
			
		||||
        locale-gen --no-purge en_US.UTF-8 && \
 | 
			
		||||
    apt-get clean && rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
 | 
			
		||||
 | 
			
		||||
ENV LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8
 | 
			
		||||
ENV PUID="1000"
 | 
			
		||||
ENV PGID="1000"
 | 
			
		||||
 | 
			
		||||
# Set up user environment
 | 
			
		||||
RUN groupadd -g $PGID abc && \
 | 
			
		||||
    useradd -d /app -u $PUID -g abc abc && \
 | 
			
		||||
    mkdir -p /app/svencoop && \
 | 
			
		||||
    chown -R abc:abc /app
 | 
			
		||||
 | 
			
		||||
USER abc
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
 | 
			
		||||
# Download and update steamcmd
 | 
			
		||||
RUN wget -qO- http://media.steampowered.com/installer/steamcmd_linux.tar.gz | tar xz -C /app && \
 | 
			
		||||
    chmod +x /app/steamcmd.sh && \
 | 
			
		||||
    /app/steamcmd.sh +force_install_dir /app +login anonymous +quit
 | 
			
		||||
 | 
			
		||||
# Download Sven Co-Op server
 | 
			
		||||
RUN /app/steamcmd.sh +login anonymous +force_install_dir /app/svencoop +app_update 276060 validate +quit && \
 | 
			
		||||
    echo "225840" > /app/svencoop/steam_appid.txt
 | 
			
		||||
 | 
			
		||||
# Link steamclient.so to prevent srcds_run errors
 | 
			
		||||
RUN mkdir -p /app/.steam/sdk32 && \
 | 
			
		||||
    ln -s /app/svencoop/steamclient.so /app/.steam/sdk32/steamclient.so
 | 
			
		||||
 | 
			
		||||
WORKDIR /app/svencoop
 | 
			
		||||
ENTRYPOINT ["/app/svencoop/svends_run"]
 | 
			
		||||
		Reference in New Issue
	
	Block a user