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
This commit is contained in:
jabuxas 2024-09-02 11:38:10 -03:00
parent a823069c22
commit 5343f236ed
3 changed files with 15 additions and 2 deletions

View File

@ -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 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 RUN mkdir /cports && chown -R user:user /cports

9
docker-compose.yml Normal file
View File

@ -0,0 +1,9 @@
services:
cports:
build: .
stdin_open: true
tty: true
user: user
privileged: true
volumes:
- ${CPORTS_REPO}:/cports

4
generate_config.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
echo "What is the path to your cports repo?"
read repo_path
echo "CPORTS_REPO=$repo_path" > .env