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 af1a855 commit 537520a
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
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 && apt install -y extra-runtime-dependencies && rm -rf /var/lib/apt/lists/*
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 537520a

Please sign in to comment.