Skip to content

Commit

Permalink
build: Optimize Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored May 13, 2024
1 parent a22f00a commit 6f62632
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
FROM alpine:edge

RUN apk --no-cache add \
tini \
bash \
samba \
tzdata \
shadow && \
addgroup -S smb && \
rm -rf /tmp/* /var/cache/apk/*
RUN set -eu && \
apk --no-cache add \
tini \
bash \
samba \
tzdata \
shadow && \
addgroup -S smb && \
rm -f /etc/samba/smb.conf && \
rm -rf /tmp/* /var/cache/apk/*

RUN rm -f /etc/samba/smb.conf
COPY smb.conf /etc/samba/smb.default

COPY samba.sh /usr/bin/
RUN chmod +x /usr/bin/samba.sh
COPY --chmod=755 samba.sh /usr/bin/
COPY --chmod=644 smb.conf /etc/samba/smb.default

VOLUME /storage
EXPOSE 139 445

ENV USER "samba"
ENV PASS "secret"

ENV UID 1000
ENV GID 1000
ENV RW true
Expand Down

0 comments on commit 6f62632

Please sign in to comment.