Update server Dockerfile due to crate name change (#1211)

* Update server Dockerfile due to crate name change

* Forgot that the bin name changed too
This commit is contained in:
Vítor Vasconcellos 2023-08-12 18:00:16 -03:00 committed by GitHub
parent a253431d0f
commit c86a728a1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,7 +70,7 @@ RUN --mount=type=cache,target=/root/.cache/prisma/binaries/cli/ \
COPY --from=web /srv/spacedrive/apps/web/dist /srv/spacedrive/apps/web/dist
RUN cargo build --features assets --release -p server
RUN cargo build --features assets --release -p sd-server
#--
@ -86,7 +86,7 @@ ENV TZ=UTC \
DATA_DIR=/data
# Note: This needs to happen before the apt call to avoid locking issues with the previous step
COPY --from=server /srv/spacedrive/target/release/server /usr/bin/
COPY --from=server /srv/spacedrive/target/release/sd-server /usr/bin/
RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \
apt-get install \
@ -102,7 +102,7 @@ EXPOSE 8080
VOLUME [ "/data" ]
# Run the CLI when the container is started
ENTRYPOINT [ "server" ]
ENTRYPOINT [ "sd-server" ]
LABEL org.opencontainers.image.title="Spacedrive Server" \
org.opencontainers.image.source="https://github.com/spacedriveapp/spacedrive"