Skip to content
Snippets Groups Projects
Commit 990069fb authored by Niaz Faridani-Rad's avatar Niaz Faridani-Rad
Browse files

Make dockerfiles work

parent f21918c5
No related branches found
No related tags found
No related merge requests found
...@@ -74,7 +74,7 @@ RUN git clone https://github.com/davisking/dlib.git && \ ...@@ -74,7 +74,7 @@ RUN git clone https://github.com/davisking/dlib.git && \
# actual project # actual project
ARG DEBUG ARG DEBUG
WORKDIR /code WORKDIR /code
COPY . . RUN git clone https://github.com/LibrePhotos/librephotos .
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
RUN if [ "$DEBUG" = 1 ] ; then pip install -r requirements.dev.txt ; fi RUN if [ "$DEBUG" = 1 ] ; then pip install -r requirements.dev.txt ; fi
RUN python -m spacy download en_core_web_sm RUN python -m spacy download en_core_web_sm
......
...@@ -7,7 +7,7 @@ WORKDIR /usr/src/app ...@@ -7,7 +7,7 @@ WORKDIR /usr/src/app
RUN npm install -g serve RUN npm install -g serve
ENV CLI_WIDTH 80 ENV CLI_WIDTH 80
RUN git clone https://github.com/LibrePhotos/librephotos-frontend /usr/src/app RUN git clone https://github.com/LibrePhotos/librephotos-frontend /usr/src/app
RUN npm install RUN npm install --legacy-peer-deps
RUN npm run build RUN npm run build
EXPOSE 3000 EXPOSE 3000
......
#!/usr/bin/env bash #!/usr/bin/env bash
echo "installing frontend" echo "installing frontend"
npm install npm install --legacy-peer-deps
echo "serving frontend" echo "serving frontend"
if [ "$DEBUG" = 1 ] if [ "$DEBUG" = 1 ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment