4 Commits

Author SHA1 Message Date
hasslesstech 3eacc59ef9 add README.md 2024-09-25 16:25:58 +03:00
hasslesstech f50bbca48e add docker-compose.yaml 2024-09-25 15:01:49 +03:00
hasslesstech 7a84db633c fix wrong timezone 2024-09-25 14:56:37 +03:00
hasslesstech 64d6638cc3 add Dockerfile for automatic container creation 2024-09-25 14:33:33 +03:00
3 changed files with 41 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM python:3.11-slim-bullseye
WORKDIR /app
RUN rm /etc/localtime
RUN ln -s /usr/share/zoneinfo/Europe/Kyiv /etc/localtime
COPY ./requirements.txt /app/requirements.txt
RUN python -m pip install -r requirements.txt
COPY ./app/ /app/app/
CMD flask run -h 0.0.0.0 -p $PORT
+15
View File
@@ -0,0 +1,15 @@
# Application for Backend Development Course
## How to deploy this application
First, make sure you have both `docker` and `docker-compose` installed and working.
You can then clone this repository and bring the server up with docker-compose any way you prefer.
For example, your actions may look like so:
```bash
git clone http://139.162.162.130:3000/hasslesstech/backend-development-course
cd backend-development-course
docker-compose up
```
That should be enough to get the server up and running.
+12
View File
@@ -0,0 +1,12 @@
version: '3'
services:
app:
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
environment:
PORT: "12402"
ports:
- "12402:12402"