diff --git a/Dockerfile b/Dockerfile index dc54e77..7d6089f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,7 @@ -FROM golang:alpine AS build -WORKDIR /app -RUN apk add --no-cache git -RUN git clone https://codeberg.org/gothub/gothub . -RUN go mod download -RUN go build -ldflags "-X codeberg.org/gothub/gothub/pages.Version=$(git rev-parse --short HEAD)" - -FROM alpine:latest AS bin -WORKDIR /app -COPY --from=build /app/gothub . -COPY --from=build /app/public . -COPY --from=build /app/views . -CMD ["./gothub serve"] +FROM alpine:latest +WORKDIR /gothub +COPY ./gothub . +COPY ./public/ ./public/ +COPY ./views/ ./views/ +CMD ["/bin/sh", "-c", "./gothub"] EXPOSE 3000 \ No newline at end of file