Browse Source

fix: remove invalid shell operators from Dockerfile COPY

- Remove '|| true' from COPY commands (not supported in Dockerfile)
- Remove optional weed_pub* and weed_sub* copies (not needed for tests)
- Simplify Dockerfile to only copy required files
- Keep chmod +x and ls -la verification for main binary
pull/7526/head
chrislu 7 days ago
parent
commit
e29163dfa4
  1. 2
      docker/Dockerfile.local

2
docker/Dockerfile.local

@ -2,8 +2,6 @@ FROM alpine AS final
LABEL author="Chris Lu" LABEL author="Chris Lu"
COPY ./weed /usr/bin/weed COPY ./weed /usr/bin/weed
RUN chmod +x /usr/bin/weed && ls -la /usr/bin/weed RUN chmod +x /usr/bin/weed && ls -la /usr/bin/weed
COPY ./weed_pub* /usr/bin/ || true
COPY ./weed_sub* /usr/bin/ || true
RUN mkdir -p /etc/seaweedfs RUN mkdir -p /etc/seaweedfs
COPY ./filer.toml /etc/seaweedfs/filer.toml COPY ./filer.toml /etc/seaweedfs/filer.toml
COPY ./entrypoint.sh /entrypoint.sh COPY ./entrypoint.sh /entrypoint.sh

Loading…
Cancel
Save