mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-01-09 00:29:57 +08:00
update
This commit is contained in:
parent
3aeb7f83f8
commit
fd9a8903e1
2 changed files with 1 additions and 18 deletions
17
Dockerfile
17
Dockerfile
|
@ -2,19 +2,6 @@ FROM golang:alpine as builder
|
|||
|
||||
RUN apk update && apk add --no-cache git ca-certificates tzdata && update-ca-certificates
|
||||
|
||||
ENV USER=appuser
|
||||
|
||||
ENV UID=10001
|
||||
|
||||
RUN adduser \
|
||||
--disabled-password \
|
||||
--gecos "" \
|
||||
--home "/nonexistent" \
|
||||
--shell "/sbin/nologin" \
|
||||
--no-create-home \
|
||||
--uid "${UID}" \
|
||||
"${USER}"
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# use modules
|
||||
|
@ -36,13 +23,9 @@ WORKDIR /app
|
|||
|
||||
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
COPY --from=builder /etc/passwd /etc/passwd
|
||||
COPY --from=builder /etc/group /etc/group
|
||||
|
||||
COPY --from=builder /app/teldrive /app/teldrive
|
||||
|
||||
USER appuser:appuser
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT ["/app/teldrive"]
|
|
@ -6,7 +6,7 @@ services:
|
|||
restart: always
|
||||
container_name: server
|
||||
volumes:
|
||||
- ./sessions:/app/sessions
|
||||
- ./sessions:/app/sessions:rw
|
||||
- ./database:/app/database
|
||||
env_file: .env
|
||||
ports:
|
||||
|
|
Loading…
Reference in a new issue