Update Dockerfile
A Working Version for a Docker File for All Architecture Image is uploaded for Arm64 Architecture https://hub.docker.com/r/reddexx/lama-cleaner
This commit is contained in:
parent
0f70ab58a7
commit
be43321eab
26
Dockerfile
26
Dockerfile
@ -1,11 +1,11 @@
|
|||||||
#
|
#
|
||||||
# Lama Cleaner Dockerfile
|
# Lama Cleaner Dockerfile
|
||||||
# @author Loreto Parisi (loretoparisi at gmail dot com)
|
# @author Reddexx
|
||||||
#
|
#
|
||||||
|
|
||||||
FROM python:3.7.4-slim-buster
|
FROM python:3.8.13-slim-bullseye
|
||||||
|
ENV LAMA_CLEANER_VERSION=0.14.0
|
||||||
LABEL maintainer Loreto Parisi loretoparisi@gmail.com
|
LABEL maintainer Reddexx
|
||||||
|
|
||||||
WORKDIR app
|
WORKDIR app
|
||||||
|
|
||||||
@ -16,9 +16,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
npm
|
npm
|
||||||
|
|
||||||
# python requirements
|
# python requirements
|
||||||
COPY . .
|
|
||||||
COPY requirements.txt /etc/tmp/requirements.txt
|
RUN pip install torch>=1.8.2 opencv-python flask_cors flask==1.1.4 flaskwebgui tqdm pydantic loguru pytest markupsafe==2.0.1
|
||||||
RUN pip install -r /etc/tmp/requirements.txt
|
|
||||||
|
|
||||||
# nodejs
|
# nodejs
|
||||||
RUN npm install n -g && \
|
RUN npm install n -g && \
|
||||||
@ -26,11 +25,16 @@ RUN npm install n -g && \
|
|||||||
# yarn
|
# yarn
|
||||||
RUN npm install -g yarn
|
RUN npm install -g yarn
|
||||||
|
|
||||||
|
#Create Directory
|
||||||
|
RUN mkdir -p /lama_cleaner && cd /lama_cleaner
|
||||||
|
|
||||||
# webapp
|
# webapp
|
||||||
RUN cd lama_cleaner/app/ && \
|
RUN set -x; curl -SL -o lama-cleaner.tar.gz https://github.com/Sanster/lama-cleaner/archive/refs/tags/${LAMA_CLEANER_VERSION}.tar.gz && \
|
||||||
yarn && \
|
tar xvf lama-cleaner.tar.gz -C /lama_cleaner --strip-components=1 && \
|
||||||
yarn build
|
rm lama-cleaner.tar.gz
|
||||||
|
|
||||||
|
RUN cd /lama_cleaner/lama_cleaner/app && yarn && yarn build
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
CMD ["bash"]
|
CMD ["bash"]
|
||||||
|
Loading…
Reference in New Issue
Block a user