Create Dockerfile
Browse files- Dockerfile +13 -0
Dockerfile
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM golang:alpine AS builder
|
| 2 |
+
WORKDIR /app
|
| 3 |
+
RUN apk add --no-cache git
|
| 4 |
+
RUN git clone https://github.com/Rippanteq7/telerealm .
|
| 5 |
+
RUN go mod download
|
| 6 |
+
RUN CGO_ENABLED=0 GOOS=linux go build -o server main.go
|
| 7 |
+
|
| 8 |
+
FROM alpine:latest
|
| 9 |
+
WORKDIR /app
|
| 10 |
+
RUN apk --no-cache add ca-certificates
|
| 11 |
+
COPY --from=builder /app/server ./server
|
| 12 |
+
EXPOSE 7860
|
| 13 |
+
CMD ["./server"]
|