Update Dockerfile
Browse files- Dockerfile +6 -7
Dockerfile
CHANGED
|
@@ -21,7 +21,12 @@ COPY . .
|
|
| 21 |
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build \
|
| 22 |
-ldflags='-w -s -extldflags "-static"' -a \
|
| 23 |
-o /app/teldrive .
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
FROM --platform=${TARGETPLATFORM:-linux/amd64} scratch
|
| 27 |
|
|
@@ -32,12 +37,6 @@ COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
| 32 |
|
| 33 |
COPY --from=builder /app/teldrive /app/teldrive
|
| 34 |
|
| 35 |
-
FROM ghcr.io/divyam234/teldrive/server:latest
|
| 36 |
-
USER root
|
| 37 |
-
RUN adduser -D -u 1000 user
|
| 38 |
-
RUN chown -R user:user /app
|
| 39 |
-
USER user
|
| 40 |
-
ENV PORT 7860
|
| 41 |
EXPOSE 7860
|
| 42 |
|
| 43 |
ENTRYPOINT ["/app/teldrive"]
|
|
|
|
| 21 |
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build \
|
| 22 |
-ldflags='-w -s -extldflags "-static"' -a \
|
| 23 |
-o /app/teldrive .
|
| 24 |
+
FROM ghcr.io/divyam234/teldrive/server:latest
|
| 25 |
+
USER root
|
| 26 |
+
RUN adduser -D -u 1000 user
|
| 27 |
+
RUN chown -R user:user /app
|
| 28 |
+
USER user
|
| 29 |
+
ENV PORT 7860
|
| 30 |
|
| 31 |
FROM --platform=${TARGETPLATFORM:-linux/amd64} scratch
|
| 32 |
|
|
|
|
| 37 |
|
| 38 |
COPY --from=builder /app/teldrive /app/teldrive
|
| 39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
EXPOSE 7860
|
| 41 |
|
| 42 |
ENTRYPOINT ["/app/teldrive"]
|