File size: 846 Bytes
a9af645
 
ec2d5d5
 
 
 
 
 
 
 
 
 
 
 
 
c767598
 
 
 
 
 
 
 
 
 
 
 
 
 
103b473
 
 
a9af645
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM soyorins/imageflow

ENV STORAGE_TYPE="local"
ENV LOCAL_STORAGE_PATH="/app/static/images"
ENV S3_ENDPOINT=""
ENV S3_REGION=""
ENV S3_ACCESS_KEY=""
ENV S3_SECRET_KEY=""
ENV S3_BUCKET=""
ENV CUSTOM_DOMAIN=""
ENV MAX_UPLOAD_COUNT="20"
ENV IMAGE_QUALITY="80"
ENV WORKER_THREADS="4"
ENV COMPRESSION_EFFORT="6"
ENV FORCE_LOSSLESS="false"

RUN mkdir -p /app/static/images/metadata \
    /app/static/images/original/landscape \
    /app/static/images/original/portrait \
    /app/static/images/landscape/webp \
    /app/static/images/landscape/avif \
    /app/static/images/portrait/webp \
    /app/static/images/portrait/avif \
    /app/static/images/gif

RUN chmod -R 777 /app/static/images

RUN touch /app/.env && chmod 666 /app/.env

ENV APP_DIR="/app"
ENV APP_NAME="image"
ENV APP_SUFFIX="flow"

CMD ["sh", "-c", "$APP_DIR/$APP_NAME$APP_SUFFIX"]