2022-08-13 18:16:32 +02:00
|
|
|
FROM golang:alpine as build
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN go build
|
|
|
|
|
|
|
|
FROM alpine:latest
|
2023-09-04 17:42:54 +02:00
|
|
|
COPY --from=build /app/yaf /app/yaf
|
2022-08-13 18:16:32 +02:00
|
|
|
WORKDIR /app
|
2023-09-04 17:42:54 +02:00
|
|
|
RUN mkdir -p /var/www/yaf
|
|
|
|
CMD ["./yaf"]
|