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 537520a commit ce02b6c
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
# FROM rust:latest AS builder
# WORKDIR /app
# COPY . .
# RUN cargo install --path .
FROM rust:latest AS builder
WORKDIR /app
COPY . .
RUN cargo install --path .

FROM debian:bookworm-slim
LABEL maintainer="Jetsung Chan<[email protected]>"

RUN apt update
RUN apt install -y extra-runtime-dependencies
RUN rm -rf /var/lib/apt/lists/*

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
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

EXPOSE 8000
CMD [ "filetas" ]

0 comments on commit ce02b6c

Please sign in to comment.