diff --git a/Containerfile b/Containerfile index 15dd19f..8c639e9 100644 --- a/Containerfile +++ b/Containerfile @@ -1,23 +1,15 @@ -FROM rust:alpine AS builder - -RUN apk update -RUN apk add --no-cache \ - openssl \ - openssl-dev \ - pkgconfig \ - build-base - -ENV OPENSSL_DIR=/usr +FROM rust:latest AS builder WORKDIR /app -COPY . . - RUN cargo install --path . -FROM alpine:latest +FROM debian:bullseye-slim LABEL maintainer="Jetsung Chan" -RUN apk update && apk add --no-cache openssl libssl3 && rm -rf /var/cache/apk/* +# RUN apt-get update && apt-get install -y locales libssl3 libssl-dev && rm -rf /var/lib/apt/lists/* \ +# && localedef -i zh_CN -c -f UTF-8 -A /usr/share/locale/locale.alias zh_CN.UTF-8 +# ENV LANG zh_CN.utf8 +RUN apt update && apt install -y libssl3 libssl-dev && rm -rf /var/lib/apt/lists/* WORKDIR /app @@ -25,5 +17,6 @@ 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" ]