parent
c9d399f760
commit
141512b847
@ -5,7 +5,8 @@ RUN apk add upx
|
|||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
# sqlite必须
|
||||||
|
ENV CGO_ENABLED=1
|
||||||
ENV GO111MODULE=on
|
ENV GO111MODULE=on
|
||||||
ENV GOPROXY=https://goproxy.cn,direct
|
ENV GOPROXY=https://goproxy.cn,direct
|
||||||
|
|
||||||
@ -21,6 +22,6 @@ RUN mkdir -p db
|
|||||||
COPY --from=build /build/app /app
|
COPY --from=build /build/app /app
|
||||||
COPY --from=build /build/template/* /app/template/
|
COPY --from=build /build/template/* /app/template/
|
||||||
|
|
||||||
RUN ls -al /app/ | grep 'app'
|
RUN ls -al
|
||||||
|
|
||||||
ENTRYPOINT ["./app"]
|
ENTRYPOINT ["./app"]
|
Loading…
x
Reference in New Issue
Block a user