mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
Revert "Docker for reproducible Makefile"
This reverts commit 8855af2344fa76f51f0e8a1ce4faa707c9af8a64.
This commit is contained in:
@@ -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"]
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user