initial commit

This commit is contained in:
Price Hiller 2023-01-07 20:07:05 -06:00
commit c38a095820
2 changed files with 68 additions and 0 deletions

47
Dockerfile Normal file
View File

@ -0,0 +1,47 @@
# syntax=docker/dockerfile:1.4
FROM debian:bullseye-slim AS build
LABEL maintainer="price@orion-technologies.io"
ENV USER="steam"
ENV USER_HOME="/home/${USER}"
ENV STEAM_CMD_INSTALL_DIR="${USER_HOME}/Steam/steamcmd"
ARG steam_cmd_bin_reflection="${USER_HOME}/.local/bin"
RUN <<__EOR__
apt-get update
apt-get install -y --no-install-suggests --no-install-recommends \
vim=2:8.2.2434-3+deb11u1 \
curl=7.74.0-1.3+deb11u3 \
lib32stdc++6=10.2.1-6 \
lib32gcc-s1=10.2.1-6 \
ca-certificates=20210119
useradd -m "${USER}"
su - "${USER}" << __EOC__
(
mkdir -p "${STEAM_CMD_INSTALL_DIR}"
cd "${STEAM_CMD_INSTALL_DIR}"
pwd
curl -fsSL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
./${STEAM_CMD_INSTALL_DIR}/steamcmd.sh +quit
)
mkdir -p "${steam_cmd_bin_reflection}"
cat << __EOF__ > "${steam_cmd_bin_reflection}/steamcmd"
#!/bin/bash
${STEAM_CMD_INSTALL_DIR}/steamcmd.sh \${@}
__EOF__
chmod 750 "${steam_cmd_bin_reflection}/steamcmd"
./${steam_cmd_bin_reflection}/steamcmd +quit
__EOC__
apt-get remove --purge --auto-remove -y
rm -rf /var/lib/apt/lists/*
__EOR__
FROM build as prod
WORKDIR "${USER_HOME}"
USER "${USER}"

21
LICENSE Normal file
View File

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2023 Price Hiller
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.