Skip to content

Commit

Permalink
Maybe fix
Browse files Browse the repository at this point in the history
  • Loading branch information
M1chlCZ committed Jun 14, 2023
1 parent 0468ef5 commit 103b129
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ RUN go mod tidy && \
go build -o main .

#Use the official TensorFlow image as the base image
FROM debian:stable-slim
FROM ubuntu:latest

# Install required dependencies
RUN apt-get update -qq
Expand All @@ -67,14 +67,11 @@ COPY --from=builder /app/assets/nsfw /assets/nsfw
COPY --from=builder /app/assets/temp /assets/temp
COPY --from=builder /app/labels.txt /assets/nsfw/labels.txt

RUN wget https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-2.11.0.tar.gz && \
tar -C /usr -xzf libtensorflow-cpu-linux-x86_64-2.11.0.tar.gz && \
ldconfig && \
rm libtensorflow-cpu-linux-x86_64-2.11.0.tar.gz
COPY --from=builder /usr/lib/libtensorflow.so.2 /usr/local/lib/
COPY --from=builder /usr/lib/libtensorflow_framework.so.2 /usr/local/lib/

# Set the environment variables to help the runtime find the TensorFlow C library
ENV LD_LIBRARY_PATH /usr/local/lib
RUN ldconfig

LABEL authors="M1chl"

Expand Down

0 comments on commit 103b129

Please sign in to comment.