Walter Mantovani
commited on
Commit
·
85aefa9
1
Parent(s):
3edf8ae
UPD
Browse files- Dockerfile +9 -2
- models.py +1 -1
Dockerfile
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Use the official Python
|
2 |
-
FROM python:3.11
|
3 |
|
4 |
# Set the working directory to /code
|
5 |
WORKDIR /code
|
@@ -17,6 +17,13 @@ RUN export LC_ALL="it_IT.UTF-8"
|
|
17 |
RUN export LC_CTYPE="it_IT.UTF-8"
|
18 |
RUN dpkg-reconfigure locales
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
# Set up a new user named "user" with user ID 1000
|
21 |
RUN useradd -m -u 1000 user
|
22 |
# Switch to the "user" user
|
|
|
1 |
+
# Use the official Python image
|
2 |
+
FROM python:3.11-slim
|
3 |
|
4 |
# Set the working directory to /code
|
5 |
WORKDIR /code
|
|
|
17 |
RUN export LC_CTYPE="it_IT.UTF-8"
|
18 |
RUN dpkg-reconfigure locales
|
19 |
|
20 |
+
# ENV MUSL_LOCPATH="/usr/share/i18n/locales/musl"
|
21 |
+
|
22 |
+
# RUN apk --no-cache add \
|
23 |
+
# musl-locales \
|
24 |
+
# musl-locales-lang \
|
25 |
+
# python3
|
26 |
+
|
27 |
# Set up a new user named "user" with user ID 1000
|
28 |
RUN useradd -m -u 1000 user
|
29 |
# Switch to the "user" user
|
models.py
CHANGED
@@ -2,7 +2,7 @@ import locale
|
|
2 |
from flask_sqlalchemy import SQLAlchemy
|
3 |
from sqlalchemy_serializer import SerializerMixin
|
4 |
|
5 |
-
locale.setlocale(locale.
|
6 |
|
7 |
db = SQLAlchemy()
|
8 |
|
|
|
2 |
from flask_sqlalchemy import SQLAlchemy
|
3 |
from sqlalchemy_serializer import SerializerMixin
|
4 |
|
5 |
+
locale.setlocale(locale.LC_TIME, 'it_IT.UTF-8')
|
6 |
|
7 |
db = SQLAlchemy()
|
8 |
|