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 b6c58eb commit c9a6b80
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,22 @@ FROM debian:bullseye-slim
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y \
libssl3 \
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"

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

CMD ["backend"]

0 comments on commit c9a6b80

Please sign in to comment.