File tree Expand file tree Collapse file tree 5 files changed +11
-25
lines changed Expand file tree Collapse file tree 5 files changed +11
-25
lines changed Original file line number Diff line number Diff line change 31
31
32
32
env :
33
33
REGISTRY : ghcr.io
34
- IMAGE_NAME : ' ptp '
34
+ IMAGE_NAME : ${{ github.repository }}
35
35
# DOCKER_USER: ${{ secrets.DOCKER_USER }}
36
36
# DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
37
37
working-directory : ./ptp
69
69
with :
70
70
# list of Docker images to use as base name for tags
71
71
images : |
72
- ghcr.io/pharmbio/ptp
72
+ ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
73
73
# generate Docker tags based on the following events/attributes
74
74
tags : |
75
75
type=schedule
Original file line number Diff line number Diff line change @@ -30,8 +30,7 @@ FROM djangobase AS djangoapp
30
30
COPY . /app/
31
31
32
32
WORKDIR /app
33
-
34
-
33
+ RUN mkdir /app/inference/models/
35
34
36
35
# Expose the port the Django app runs on
37
36
EXPOSE 8000
@@ -41,16 +40,16 @@ RUN useradd -u 1000 $USER
41
40
RUN chown -R $USER:$USER /etc/supervisor/conf.d/supervisord.conf
42
41
RUN chown -R $USER:$USER /app/
43
42
RUN chown -R $USER:$USER /var/log/supervisor/
44
- RUN chmod +x /app/start-single .sh
43
+ RUN chmod +x /app/start-script .sh
45
44
RUN chmod +x /app/start-django.sh
46
- RUN chmod +x /app/download.sh
47
45
48
46
# Make sure the container is running as non-root
49
47
USER $USER
50
48
51
49
ENV CELERY_BROKER_URL="redis://localhost:6379/0"
52
50
ENV REDIS_URL="redis://localhost:6379/0"
53
- ENV DOWNLOAD=false
51
+ ENV MODEL_DIR = "/app/inference/models/models"
52
+ # Models will be downloaded and placed in /app/inference/models/models through SciLifeLab Serve interface
54
53
55
54
# Start supervisord
56
- CMD ["sh" , "-c" , "/app/start-single .sh" ]
55
+ CMD ["sh" , "-c" , "/app/start-script .sh" ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ sh -c /app/start-django.sh
4
+ supervisord -c /etc/supervisor/conf.d/supervisord.conf
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments