Commit 5d2e202b authored by Mrs4s's avatar Mrs4s Committed by GitHub

Merge pull request #47 from purerosefallen/patch-1

Add Dockerfile
parents d5a8f3ea fdd517ee
.gitlab-ci.yml
.dockerignore
Dockerfile
README.md
LICENSE
FROM golang:1.14.2-alpine AS builder
RUN go env -w GO111MODULE=auto \
&& go env -w CGO_ENABLED=0 \
&& mkdir /build
WORKDIR /build
COPY ./ .
RUN cd /build \
&& go build -ldflags "-s -w -extldflags '-static'" -o cqhttp
FROM alpine:latest
COPY --from=builder /build/cqhttp /usr/bin/cqhttp
RUN chmod +x /usr/bin/cqhttp
WORKDIR /data
ENTRYPOINT [ "/usr/bin/cqhttp" ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment