Skip to content

Commit

Permalink
backend: fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hynseok committed Nov 3, 2024
1 parent c9a6b80 commit a0927f8
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,9 @@ COPY . .
RUN cargo build --release


FROM debian:bullseye-slim

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y \
wget \
build-essential \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*

RUN wget https://www.openssl.org/source/openssl-3.0.0.tar.gz && \
tar -xzf openssl-3.0.0.tar.gz && \
cd openssl-3.0.0 && \
./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl && \
make && \
make install && \
cd .. && \
rm -rf openssl-3.0.0 openssl-3.0.0.tar.gz

ENV LD_LIBRARY_PATH="/usr/local/ssl/lib"
FROM alpine:latest

RUN apk add --no-cache openssl3 libgcc libstdc++ ca-certificates

COPY --from=builder /usr/src/backend/target/release/backend /usr/local/bin/backend

Expand Down

0 comments on commit a0927f8

Please sign in to comment.