Skip to content

Commit 49ecf09

Browse files
committed
initial commit
0 parents  commit 49ecf09

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build docker image
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Generate tags
17+
run: echo "IMG_TAG=${GITHUB_SHA::7}" >> $GITHUB_ENV
18+
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v2
21+
22+
- name: Login to GitHub Container Registry
23+
uses: docker/login-action@v2
24+
with:
25+
registry: ghcr.io
26+
username: ${{github.actor}}
27+
password: ${{secrets.GITHUB_TOKEN}}
28+
29+
- name: Build Docker image
30+
run: docker buildx build --push -t ghcr.io/${{ github.repository }}/5k-dedicated:${{ env.IMG_TAG }} .

LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
2+
Version 2, December 2004
3+
4+
Copyright (C) 2004 Sam Hocevar <[email protected]>
5+
6+
Everyone is permitted to copy and distribute verbatim or modified
7+
copies of this license document, and changing it is allowed as long
8+
as the name is changed.
9+
10+
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
11+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
12+
13+
0. You just DO WHAT THE FUCK YOU WANT TO.

dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM debian
2+
3+
RUN apt update && apt install -y lib32gcc-s1 curl && rm -rf /var/lib/apt/lists/* && \
4+
useradd -m -s /bin/bash 5k
5+
6+
ENV STEAMPATH="/home/5k/Steam"
7+
8+
USER 5k
9+
RUN mkdir ${STEAMPATH} && cd ${STEAMPATH} && \
10+
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf - && \
11+
./steamcmd.sh +'quit'
12+
13+
ENV APPID=884110
14+
ENV SRVPATH="/home/5k/Steam/steamapps/common/SCP Pandemic Dedicated Server"
15+
16+
CMD ${STEAMPATH}/steamcmd.sh @ShutdownOnFailedCommand @NoPromptForPassword +login anonymous +app_update ${APPID} validate +'quit' && \
17+
cd "${SRVPATH}" && ./LinuxServer/PandemicServer.sh

0 commit comments

Comments
 (0)