Skip to content

Commit

Permalink
docker fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Timtam committed Mar 9, 2024
1 parent 03f4884 commit 527b9aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ COPY ./client /app

RUN npm install && npm run build

FROM rust:1.76-slim-bookworm as server_build_image
FROM rust:1.76-slim-bookworm AS server_build_image

# create a new empty shell project
RUN apt-get update && apt-get -y install libssl-dev pkg-config && \
Expand Down Expand Up @@ -43,7 +43,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
rm -rf /var/lib/apt/lists/*

# copy the build artifact from the build stage
COPY --from=server_bild_image /hitster/target/release/hitster-server /hitster/server/hitster
COPY --from=server_build_image /hitster/target/release/hitster-server /hitster/server/hitster
COPY --from=client_build_image /app/dist /hitster/client/dist

# set the startup command to run your binary
Expand Down

0 comments on commit 527b9aa

Please sign in to comment.