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.