Skip to content

Commit

Permalink
fix: can't use it in alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
jetsung committed Dec 10, 2024
1 parent ab1e1ba commit 45a72d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
FROM rust:alpine AS builder
WORKDIR /app
COPY . .
RUN apk update && apk add openssl libssl3
RUN cargo install --path .

FROM alpine:latest
LABEL maintainer="Jetsung Chan<[email protected]>"

WORKDIR /app

COPY --from=builder /usr/local/cargo/bin/filetas /usr/local/bin/filetas
COPY --from=builder /app/static /app/static
COPY --from=builder /app/templates /app/templates

RUN apk update && apk add openssl libssl3

EXPOSE 8000
CMD [ "filetas" ]

0 comments on commit 45a72d3

Please sign in to comment.