Compare commits
3
Commits
60c0a7a6fc
...
0.6.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bec48e3289 | ||
|
|
d8ee66480c | ||
|
|
9f5c43ce92 |
+4
-2
@@ -27,11 +27,13 @@ ENV PATH="/app/.venv/bin:$PATH"
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
ENV TZ="Europe/Moscow"
|
ENV TZ="Europe/Moscow"
|
||||||
|
|
||||||
COPY --from=builder /app ./
|
COPY --from=builder /app ./
|
||||||
|
RUN .venv/bin/playwright install chromium --with-deps --only-shell
|
||||||
|
|
||||||
COPY --from=node-builder /app/dist ./static/dist
|
COPY --from=node-builder /app/dist ./static/dist
|
||||||
|
|
||||||
COPY gallery gallery/
|
COPY gallery gallery/
|
||||||
COPY --from=builder --parents locales/**/*.mo ./
|
COPY --from=builder --parents locales/**/*.mo ./
|
||||||
|
|
||||||
RUN .venv/bin/playwright install chromium --with-deps --only-shell
|
|
||||||
|
|
||||||
CMD ["uvicorn", "gallery.main:app", "--host", "0.0.0.0", "--port", "80", "--log-config", "gallery/logging.yaml"]
|
CMD ["uvicorn", "gallery.main:app", "--host", "0.0.0.0", "--port", "80", "--log-config", "gallery/logging.yaml"]
|
||||||
|
|||||||
@@ -37,11 +37,13 @@ def parse_sky(sky: str) -> Sky:
|
|||||||
elif sky == "пасмурно":
|
elif sky == "пасмурно":
|
||||||
cloudness = Cloudness.MAINLY_CLOUDY
|
cloudness = Cloudness.MAINLY_CLOUDY
|
||||||
elif sky == "небольшой дождь":
|
elif sky == "небольшой дождь":
|
||||||
precipitation = Precipitation.RAIN
|
|
||||||
elif sky == "дождь":
|
|
||||||
precipitation = Precipitation.SMALL_RAIN
|
precipitation = Precipitation.SMALL_RAIN
|
||||||
|
elif sky == "дождь":
|
||||||
|
precipitation = Precipitation.RAIN
|
||||||
|
elif sky == "ливень":
|
||||||
|
precipitation = Precipitation.SHOWER
|
||||||
else:
|
else:
|
||||||
logger.warning("unknown sky value: %s:", sky)
|
logger.warning("unknown sky value: %s", sky)
|
||||||
return Sky(
|
return Sky(
|
||||||
cloudness=cloudness,
|
cloudness=cloudness,
|
||||||
precipitation=precipitation,
|
precipitation=precipitation,
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "gallery"
|
name = "gallery"
|
||||||
description = ""
|
description = ""
|
||||||
version = "0.5.4"
|
version = "0.6.0"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
authors = [{ name = "shmyga", email = "shmyga.z@gmail.com" }]
|
authors = [{ name = "shmyga", email = "shmyga.z@gmail.com" }]
|
||||||
requires-python = '>=3.14,<4.0'
|
requires-python = '>=3.14,<4.0'
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "gallery",
|
"name": "gallery",
|
||||||
"version": "0.5.4",
|
"version": "0.6.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "gallery",
|
"name": "gallery",
|
||||||
"version": "0.5.4",
|
"version": "0.6.0",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@popperjs/core": "^2.11.8",
|
"@popperjs/core": "^2.11.8",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gallery",
|
"name": "gallery",
|
||||||
"version": "0.5.4",
|
"version": "0.6.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack --mode production",
|
"build": "webpack --mode production",
|
||||||
|
|||||||
Reference in New Issue
Block a user