add docker build action
Some checks failed
Release / build (push) Has been cancelled

This commit is contained in:
2023-01-16 22:58:45 +08:00
parent 529ef40a82
commit a2e5b9d24d
4 changed files with 46 additions and 2 deletions

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM alpine:latest
LABEL maintainer="Gardel <sunxinao@hotmail.com>"
LABEL "Description"="Go Yggdrasil Server"
ARG TARGETOS
ARG TARGETARCH
RUN mkdir -p /app
COPY "build/yggdrasil-${TARGETOS}-${TARGETARCH}" /app/yggdrasil
EXPOSE 8080
VOLUME /app/data
WORKDIR /app/data
ENTRYPOINT ["/app/yggdrasil"]