Skip to content

Commit 3af130a

Browse files
committed
Timezones πŸ›€πŸ»
1 parent 349db54 commit 3af130a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

β€ŽDockerfileβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
FROM alpine:3.17 as builder
22

3-
RUN apk add --no-cache python3 py3-pip libpq postgresql-client curl
3+
RUN apk add --no-cache python3 py3-pip libpq postgresql-client curl tzdata alpine-conf
44
RUN adduser -D dbs
55

6+
RUN setup-timezone -z Europe/Bratislava
7+
68
USER dbs
79

810
WORKDIR /home/dbs

β€ŽREADME.mdβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ docker run -p 127.0.0.1:8000:8000 --env NAME=Dexter --name dbs-python-example-co
6969
```
7070

7171
If the waiting time for a GitHub actions is too long, you can publish yours local build image
72-
using [docker push](https://docs.docker.com/engine/reference/commandline/push/).
72+
using [docker push](https://docs.docker.com/engine/reference/commandline/push/). Keep in mind the tester accepts only
73+
images published inside the FIIT-Databases GitHub organisation.
7374

7475
Firstly you have to tag your local image according to the scheme bellow (replace curly braces):
7576
`ghcr.io/FIIT-Databases/{your-repository-name}:{tag-name}`.

β€Žrequirements.txtβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
uvicorn
22
fastapi
33
psycopg2-binary
4+
tzdata

0 commit comments

Comments
Β (0)