mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-09 18:33:36 +02:00
script update for auto version discovery, dockerfile fix for CI
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -1,17 +1,24 @@
|
||||
FROM golang:1.22.1 as builder
|
||||
|
||||
COPY go.mod /app/go.mod
|
||||
COPY src/ /app/src
|
||||
COPY Makefile /app
|
||||
WORKDIR /app
|
||||
RUN make get
|
||||
RUN make build
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
LABEL maintainer="yusing@6uo.me"
|
||||
|
||||
RUN apk add --no-cache tzdata
|
||||
RUN mkdir /app
|
||||
COPY bin/go-proxy /app/
|
||||
COPY --from=builder /app/bin/go-proxy /app/
|
||||
COPY templates/ /app/templates
|
||||
COPY schema/ /app/schema
|
||||
|
||||
RUN chmod +x /app/go-proxy
|
||||
ENV DOCKER_HOST unix:///var/run/docker.sock
|
||||
ENV GOPROXY_DEBUG 0
|
||||
ENV GOPROXY_REDIRECT_HTTP 1
|
||||
|
||||
EXPOSE 80
|
||||
EXPOSE 8080
|
||||
|
||||
Reference in New Issue
Block a user