commit c38a09582071c3ebda28438ba00541980ed21a2e Author: Price Hiller Date: Sat Jan 7 20:07:05 2023 -0600 initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d769258 --- /dev/null +++ b/Dockerfile @@ -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}" diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..7d7bc67 --- /dev/null +++ b/LICENSE @@ -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.