Feature: Docker

This commit is contained in:
VnPower
2023-06-13 16:07:28 +07:00
parent 11af699ec2
commit 81ddd87616
2 changed files with 3 additions and 3 deletions
-1
View File
@@ -8,7 +8,6 @@ RUN CGO_ENABLED=0 GOOS=linux go build -mod=readonly -v -o pixivfe
FROM docker.io/alpine:3
COPY --from=builder /app/pixivfe /pixivfe
COPY --from=builder /app/template /template
ENV GIN_MODE=release
EXPOSE 8080
ENTRYPOINT ["/pixivfe"]
+3 -2
View File
@@ -6,6 +6,7 @@ services:
dockerfile: ./Dockerfile
ports:
- "8080:8080"
restart: 'always'
restart: "always"
environment:
- PIXIVFE_TOKEN=TOKEN HERE
- PIXIVFE_TOKEN=TOKEN HERE
pid: "host"