From aaa780278749fb613fdcefdbae0aa0f74d2c39d0 Mon Sep 17 00:00:00 2001 From: perennial Date: Mon, 16 Sep 2024 20:51:04 +1000 Subject: [PATCH] Revert "Docker for reproducible Makefile" This reverts commit 8855af2344fa76f51f0e8a1ce4faa707c9af8a64. --- Dockerfile.build | 20 -------------------- README.md | 24 ------------------------ 2 files changed, 44 deletions(-) delete mode 100644 Dockerfile.build diff --git a/Dockerfile.build b/Dockerfile.build deleted file mode 100644 index 61260c9..0000000 --- a/Dockerfile.build +++ /dev/null @@ -1,20 +0,0 @@ -# Intended for creating a reproducible build environment -# Not for production use - -# Use the official Debian-based Go image as the base image -FROM golang:1.23.1-bullseye - -# Set the working directory in the container -WORKDIR /app - -# Install make, git, and any other necessary build tools -RUN apt-get update && apt-get install -y make git golang-go - -# Copy the local package files to the container's workspace -COPY . . - -# Set the entrypoint to make -ENTRYPOINT ["make"] - -# Set the default command to run when the container starts -CMD ["all"] diff --git a/README.md b/README.md index c14e8a5..989e28a 100644 --- a/README.md +++ b/README.md @@ -49,30 +49,6 @@ make build PIXIVFE_DEV=1 make run ``` -### Docker Build Environment - -We provide a `Dockerfile.build` to create a reproducible build environment. This Docker image is designed to run the project's Makefile consistently across different environments. - -#### Usage - -1. Build the Docker image: - - ```bash - docker build -t pixivfe-build -f Dockerfile.build . - ``` - -2. Run the container to execute the default 'make all' target: - - ```bash - docker run --rm -it -e PIXIVFE_PORT=8282 -e PIXIVFE_TOKEN=changeme -p 127.0.0.1:8282:8282 pixivfe-build - ``` - -3. Run the container with a specific make target, such as 'make run': - - ```bash - docker run --rm -it -e PIXIVFE_PORT=8282 -e PIXIVFE_TOKEN=changeme -p 127.0.0.1:8282:8282 pixivfe-build run - ``` - ## Using the Makefile The project includes a Makefile to simplify common development tasks. Run `make help` to view the available commands.