Update Dockerfile
Browse files- Dockerfile +7 -0
Dockerfile
CHANGED
@@ -1,5 +1,12 @@
|
|
1 |
FROM python:3.9-slim
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
WORKDIR /app
|
4 |
|
5 |
RUN pip install --no-cache-dir pyyaml requests aiohttp cachetools
|
|
|
1 |
FROM python:3.9-slim
|
2 |
|
3 |
+
RUN apt-get update && apt-get install -y --no-install-recommends tzdata && \
|
4 |
+
rm -rf /var/lib/apt/lists/*
|
5 |
+
|
6 |
+
ENV TZ=Asia/Shanghai
|
7 |
+
|
8 |
+
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
9 |
+
|
10 |
WORKDIR /app
|
11 |
|
12 |
RUN pip install --no-cache-dir pyyaml requests aiohttp cachetools
|