Bintang Fajar Julio commited on
Commit
5f78ef4
1 Parent(s): a0fddaa
Files changed (1) hide show
  1. Dockerfile +7 -5
Dockerfile CHANGED
@@ -1,13 +1,15 @@
1
  # Use Python 3.12.3 base image
2
  FROM python:3.12.3
3
 
 
 
 
 
 
 
4
  # Create a non-root user
5
  RUN useradd -m -u 1000 user
6
 
7
- # Set environment variables for locale
8
- ENV LANG=C.UTF-8 \
9
- LC_ALL=C.UTF-8
10
-
11
  # Set working directory
12
  WORKDIR /app
13
 
@@ -25,4 +27,4 @@ USER user
25
  EXPOSE 7860
26
 
27
  # Command to run the application with gunicorn
28
- CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
 
1
  # Use Python 3.12.3 base image
2
  FROM python:3.12.3
3
 
4
+ # Install locales and set locale
5
+ RUN apt-get update && apt-get install -y locales && \
6
+ locale-gen en_US.UTF-8
7
+ ENV LANG=en_US.UTF-8 \
8
+ LC_ALL=en_US.UTF-8
9
+
10
  # Create a non-root user
11
  RUN useradd -m -u 1000 user
12
 
 
 
 
 
13
  # Set working directory
14
  WORKDIR /app
15
 
 
27
  EXPOSE 7860
28
 
29
  # Command to run the application with gunicorn
30
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]