diff --git a/Dockerfile b/Dockerfile index 1cef79d..f08e133 100644 --- a/Dockerfile +++ b/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"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 338f854..54c0603 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: