Feature: Docker
This commit is contained in:
parent
11af699ec2
commit
81ddd87616
|
@ -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"]
|
||||
|
|
|
@ -6,6 +6,7 @@ services:
|
|||
dockerfile: ./Dockerfile
|
||||
ports:
|
||||
- "8080:8080"
|
||||
restart: 'always'
|
||||
restart: "always"
|
||||
environment:
|
||||
- PIXIVFE_TOKEN=TOKEN HERE
|
||||
pid: "host"
|
||||
|
|
Loading…
Reference in a new issue