diff --git a/Dockerfile b/Dockerfile index fff8f27..1a42c53 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,8 +6,8 @@ RUN echo /cports/packages/contrib >> /etc/apk/repositories.d/00-cports.list RUN echo /cports/packages/main >> /etc/apk/repositories.d/00-cports.list -RUN apk upgrade && apk add base-cbuild-host shadow +RUN apk upgrade && apk add base-cbuild-host shadow procps ca-certificates bash -RUN useradd user +RUN useradd -s /bin/bash user RUN mkdir /cports && chown -R user:user /cports diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..3bc5356 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +services: + cports: + build: . + stdin_open: true + tty: true + user: user + privileged: true + volumes: + - ${CPORTS_REPO}:/cports diff --git a/generate_config.sh b/generate_config.sh new file mode 100755 index 0000000..5e804c1 --- /dev/null +++ b/generate_config.sh @@ -0,0 +1,4 @@ +#!/bin/sh +echo "What is the path to your cports repo?" +read repo_path +echo "CPORTS_REPO=$repo_path" > .env