-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
1 addition
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,7 @@ | ||
# FROM golang:alpine AS builder | ||
# | ||
# RUN apk add --no-cache ca-certificates git | ||
# | ||
# WORKDIR /src | ||
# | ||
# COPY ./go.mod ./go.sum ./ | ||
# | ||
# RUN go mod download | ||
# | ||
# COPY ./ ./ | ||
# | ||
# RUN CGO_ENABLED=0 go build \ | ||
# -installsuffix 'static' \ | ||
# -o /app . | ||
# | ||
# FROM scratch AS final | ||
# | ||
# COPY --from=builder /app /app | ||
# | ||
# COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
# | ||
# EXPOSE 443 | ||
# | ||
# EXPOSE 80 | ||
# | ||
# VOLUME ["/cert-cache"] | ||
# | ||
# ENTRYPOINT ["/app"] | ||
|
||
FROM golang:1.22 | ||
|
||
# RUN apt update && apt upgrade -y && \ | ||
# apt install -y git \ | ||
# make openssh-client | ||
# | ||
WORKDIR /app | ||
|
||
# RUN curl -fLo install.sh https://raw.githubusercontent.com/cosmtrek/air/master/install.sh \ | ||
# && chmod +x install.sh && sh install.sh && cp ./bin/air /bin/air | ||
# | ||
COPY . . | ||
|
||
RUN go mod download |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters