add main docker
This commit is contained in:
17
fsd.vxserver.dev/Dockerfile
Normal file
17
fsd.vxserver.dev/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM golang:1.21 AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN git clone https://git.vxserver.dev/fSD/fes.git .
|
||||
|
||||
RUN go build -o fes
|
||||
|
||||
FROM debian:bullseye-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/fes .
|
||||
|
||||
ENTRYPOINT ["./fes"]
|
||||
Reference in New Issue
Block a user