mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2025-12-15 07:52:53 -05:00
Fixed Dockerfile
This commit is contained in:
parent
7493dbbb90
commit
8a129925ba
1 changed files with 5 additions and 16 deletions
21
Dockerfile
21
Dockerfile
|
|
@ -1,16 +1,4 @@
|
|||
# From original Dockerfile at https://github.com/TheCommsChannel/TC2-BBS-mesh
|
||||
FROM debian:stable-slim AS build
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y \
|
||||
git \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Clone the repository
|
||||
RUN git clone https://github.com/TheCommsChannel/TC2-BBS-mesh.git
|
||||
|
||||
####
|
||||
|
||||
FROM --platform=$BUILDPLATFORM python:alpine
|
||||
|
||||
# Switch to non-root user
|
||||
|
|
@ -20,17 +8,18 @@ RUN mkdir -p /home/mesh/bbs
|
|||
WORKDIR /home/mesh/bbs
|
||||
|
||||
# Install Python dependencies
|
||||
COPY --from=build /TC2-BBS-mesh/requirements.txt ./
|
||||
COPY requirements.txt ./
|
||||
RUN pip install --no-cache-dir --break-system-packages -r requirements.txt
|
||||
|
||||
# Copy over app code
|
||||
COPY --from=build /TC2-BBS-mesh/*.py ./
|
||||
COPY src/ ./
|
||||
COPY fortunes.txt ./fortunes.txt
|
||||
|
||||
# Define config volume
|
||||
VOLUME /home/mesh/bbs/config
|
||||
WORKDIR /home/mesh/bbs/config
|
||||
COPY --from=build /TC2-BBS-mesh/example_config.ini ./config.ini
|
||||
COPY --from=build /TC2-BBS-mesh/fortunes.txt ./
|
||||
COPY example_config.ini ./config.ini
|
||||
COPY fortunes.txt ./fortunes.txt
|
||||
|
||||
# Define the command to run
|
||||
ENTRYPOINT [ "python3", "/home/mesh/bbs/server.py" ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue