mirror of
https://github.com/aziascreations/BakaShrot.git
synced 2026-11-23 20:58:46 +01:00
Build the server image on the registry's PureBasic image
Docker/Server now compiles on git.nibblepoker.lu/packages/purebasic:6.41-linux3-trixie-slim (private: needs a docker login) instead of a local compiler image, so Docker/Compiler and its hand-copied PureBasic archive are gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RwFeVRXRpeMy93si5a8cPW
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
*
|
||||
!Dockerfile
|
||||
!*.tgz
|
||||
@@ -1,2 +0,0 @@
|
||||
# The PureBasic archive copied here to build the image: licensed, not shared.
|
||||
*.tgz
|
||||
@@ -1,22 +0,0 @@
|
||||
# PureBasic compiler image, console programs only (no GUI libraries).
|
||||
#
|
||||
# PureBasic's Linux build needs glibc 2.38+, hence Debian 13 (glibc 2.41).
|
||||
# The PureBasic archive isn't in git (it's licensed): copy it next to this
|
||||
# file first, then:
|
||||
# docker build -t purebasic:6.41 --build-arg PUREBASIC_ARCHIVE=PureBasic_Linux3_X64_6.41_xxxx.tgz Docker/Compiler
|
||||
# docker run --rm -v "$PWD":/src -w /src purebasic:6.41 pbcompiler -t Server/BakaShrot_Server.pb -e Build/BakaShrot_Server
|
||||
# Both backends are on the PATH: pbcompiler (asm) and pbcompilerc (C).
|
||||
|
||||
FROM debian:trixie-slim
|
||||
|
||||
# gcc links every program (and is the C backend), libssl-dev is for
|
||||
# PureBasic's Network library.
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends gcc libc6-dev libssl-dev \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ARG PUREBASIC_ARCHIVE
|
||||
ADD ${PUREBASIC_ARCHIVE} /opt/
|
||||
|
||||
ENV PUREBASIC_HOME=/opt/purebasic
|
||||
ENV PATH=/opt/purebasic/compilers:$PATH
|
||||
@@ -1,9 +1,13 @@
|
||||
# BakaShrot server image.
|
||||
#
|
||||
# Built from the repository's root, with the compiler image (Docker/Compiler)
|
||||
# already built, and the PB-MessagePack submodule checked out:
|
||||
# Built from the repository's root, with the PB-MessagePack submodule checked
|
||||
# out and a login to the registry holding the PureBasic images (they're
|
||||
# licensed, so not public):
|
||||
# git submodule update --init --recursive
|
||||
# docker login git.nibblepoker.lu
|
||||
# docker build -t bakashrot-server -f Docker/Server/Dockerfile .
|
||||
# Another compiler image: --build-arg COMPILER_IMAGE=<image>, any Debian 13
|
||||
# (trixie) image with PureBasic's compilers on the PATH, gcc and libssl-dev.
|
||||
#
|
||||
# Run it with a config and a volume for the database:
|
||||
# docker run -d --name bakashrot -p 12345:12345 \
|
||||
@@ -22,7 +26,9 @@
|
||||
|
||||
# --- Build ---------------------------------------------------------------------
|
||||
|
||||
ARG COMPILER_IMAGE=purebasic:6.41
|
||||
# PureBasic 6.41 for linux3 (PureBasic's newest Linux build) on
|
||||
# debian:trixie-slim, the same Debian as the runtime stage below.
|
||||
ARG COMPILER_IMAGE=git.nibblepoker.lu/packages/purebasic:6.41-linux3-trixie-slim
|
||||
FROM ${COMPILER_IMAGE} AS build
|
||||
|
||||
RUN apt-get update \
|
||||
|
||||
Reference in New Issue
Block a user