Skip to content

Commit

Permalink
temp: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen committed Dec 21, 2023
1 parent 5e63393 commit 7fb98c9
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 386 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

strategy:
matrix:
target: [subfile-exchange]
target: [subfile-exchange, subfile-service]

permissions:
packages: write
Expand Down
19 changes: 19 additions & 0 deletions Dockerfile.subfile-service
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM rust:1.74-bookworm as build

WORKDIR /root
COPY . .

RUN ls -a

RUN cargo build --release --bin subfile-service

########################################################################################

FROM debian:bookworm-slim

RUN apt-get update && apt-get install -y --no-install-recommends \
openssl ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /root/target/release/subfile-service /usr/local/bin/subfile-service

ENTRYPOINT [ "/usr/local/bin/subfile-service" ]
Loading

0 comments on commit 7fb98c9

Please sign in to comment.