Enpas commited on
Commit
e4a92e6
·
verified ·
1 Parent(s): 50c77ca

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -9
Dockerfile CHANGED
@@ -1,9 +1,9 @@
1
- FROM registry.gitlab.com/concrete1/contra200int8/main:latest
2
-
3
- ENV SERVER_PORT 5000
4
- ENV APP_PORT 7860
5
- ENV OMP_NUM_THREADS 4
6
- ENV CT2_USE_EXPERIMENTAL_PACKED_GEMM 1
7
- ENV CT2_FORCE_CPU_ISA AVX512
8
-
9
- EXPOSE $APP_PORT
 
1
+ mkdir cache && chmod 775 cache
2
+ docker run --rm \
3
+ -e SERVER_PORT=5000 \
4
+ -e APP_PORT=7860 \
5
+ -e OMP_NUM_THREADS=6 \
6
+ -e WORKER_COUNT=1 \
7
+ -p 7860:7860 \
8
+ -v ./cache:/home/user/.cache \
9
+ registry.gitlab.com/concrete1/contra200int8/main:latest