build files for making podman containers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

36 lines
783 B

###
### Build Variables
###
FROM localhost/debian:latest
# deploy options
# -p (port) and -v (volume) both go host:container
LABEL config_default="\
-p 2456-2458:2456-2458 \
-p 2456-2458:2456-2458/udp \
-v /srv/vol/valheim/data:/vol/data"
# Build variables
# uid that the files owner user should have
ARG FILESUID=5000
###
### General Setup
###
# install packages we want
RUN apt update -y && apt install -y git net-tools
# create valheim server user with file owner UID
RUN addgroup --gid $FILESUID vhadmin && \
adduser vhadmin --ingroup vhadmin --uid $FILESUID --disabled-password --gecos "Valheim Server Admin" --shell /usr/sbin/nologin && \
rm /home/mcadmin/.bashrc
# Copy custom scripts
COPY assets/bin/ /usr/local/bin/
###
### Valheim
###
WORKDIR /home/vhadmin