bhgi commited on
Commit
ba53225
·
verified ·
1 Parent(s): 04b8ed5

Restore working config

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -5
  2. entrypoint.sh +0 -6
Dockerfile CHANGED
@@ -1,8 +1,5 @@
1
  FROM ghcr.io/cjackhwang/ds2api:latest
 
2
  ENV PORT=7860
3
- ENV CONFIG_PATH=/mnt/workspace/config.json
4
- COPY config.json /tmp/config.json
5
- COPY entrypoint.sh /usr/local/bin/entrypoint.sh
6
- RUN chmod +x /usr/local/bin/entrypoint.sh
7
  EXPOSE 7860
8
- ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
 
1
  FROM ghcr.io/cjackhwang/ds2api:latest
2
+ COPY config.json /app/config.json
3
  ENV PORT=7860
 
 
 
 
4
  EXPOSE 7860
5
+ CMD ["/usr/local/bin/ds2api"]
entrypoint.sh CHANGED
@@ -1,6 +0,0 @@
1
- #!/bin/sh
2
- if [ ! -f /mnt/workspace/config.json ]; then
3
- cp /tmp/config.json /mnt/workspace/config.json
4
- echo "Initialized config.json from defaults"
5
- fi
6
- exec /usr/local/bin/ds2api