change docker to install crow directly.

This commit is contained in:
douwe
2025-08-06 19:22:54 +02:00
parent 1d1e348085
commit 1851792af1
2 changed files with 15 additions and 3 deletions

View File

@@ -9,12 +9,13 @@ RUN apt-get update && \
apt-get install -y cmake g++ make wget zlib1g-dev && \
apt-get clean;
# Download Crow library
RUN wget https://github.com/CrowCpp/Crow/releases/download/v1.2.1.2/Crow-1.2.1-Linux.deb && \
apt-get install -y ./Crow-1.2.1-Linux.deb
# Copy the current directory contents into the container at /app
COPY . /server
# Download Crow library
RUN apt-get install -y ./lib/crow-1.2.1.deb
# Make the build directory
RUN mkdir -p build && cd build

11
docker_commands.txt Normal file
View File

@@ -0,0 +1,11 @@
# build
sudo docker build -t douwco.be .
# run
sudo docker run -d --name douwco.be -p 8888:8888 douwco.be
# replace
sudo docker stop douwco.be
sudo docker rm douwco.be
sudo docker run -d --name douwco.be -p 8888:8888 douwco.be