Revert "Docker for reproducible Makefile"

This reverts commit 8855af2344fa76f51f0e8a1ce4faa707c9af8a64.
This commit is contained in:
perennial
2024-09-16 20:51:04 +10:00
parent f3ca6302c1
commit aaa7802787
2 changed files with 0 additions and 44 deletions
-20
View File
@@ -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"]
-24
View File
@@ -49,30 +49,6 @@ make build
PIXIVFE_DEV=1 <other_environment_variables> 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.