Skip to content

Commit

Permalink
workflow tweak 3
Browse files Browse the repository at this point in the history
  • Loading branch information
SnowdenWintermute committed Jan 23, 2024
1 parent cf9e0ff commit 459d242
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: docker/build-push-action@v5
with:
push: true
tags: snowd3n/roguelike-racing:server
tags: snowd3n/roguelike-racing:client
file: ./dockerfiles/client.Dockerfile
deploy:
needs: build-and-push
Expand Down
28 changes: 28 additions & 0 deletions dockerfiles/server.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM rust:1.70.0 as builder

WORKDIR /app
RUN mkdir /app/common
RUN mkdir /app/server
COPY /common/Cargo.toml ./common/Cargo.toml
COPY /server/Cargo.toml ./server/Cargo.toml
WORKDIR /app/common
RUN mkdir src \
&& echo "// dummy file" > src/lib.rs
WORKDIR /app/server
RUN mkdir src \
&& echo "// dummy file" > src/lib.rs \
&& cargo build --release

WORKDIR /app
COPY /common/src ./common/src
COPY /server/src ./server/src

WORKDIR /app/server
RUN cargo build --release
RUN echo LISTING FILES
RUN ls

# FROM rust:1.70.0:alpine
# WORKDIR /app
# COPY --from=builder /app/server/target .
# RUN cargo run

0 comments on commit 459d242

Please sign in to comment.