Commit 89800e6e authored by Zhou Yaochen's avatar Zhou Yaochen
Browse files

add dockerfile and makefile

parent fac13668
FROM golang:1.16 AS compile
COPY src/ /src
RUN cd /src/main && go build
FROM debian:stable-slim
COPY --from=compile /src/main/main /
WORKDIR /
CMD ["/main"]
IMAGE_NAME:=hub.cstcloud.cn/scalebox/goactuator
build:
docker build --network=host -f DockerFile -t $(IMAGE_NAME) .
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