From 5343f236edb7c09f500b1c9319f9f1e9173bc588 Mon Sep 17 00:00:00 2001 From: jabuxas Date: Mon, 2 Sep 2024 11:38:10 -0300 Subject: [PATCH] feat: add working docker files the problem is that a simple wgetpaste pkg took 10 minutes (https://paste.jabuxas.xyz/4689814282.log) to compile. i have no idea whats wrong yet --- Dockerfile | 4 ++-- docker-compose.yml | 9 +++++++++ generate_config.sh | 4 ++++ 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 docker-compose.yml create mode 100755 generate_config.sh 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