Compare commits
4 Commits
4936114942
...
lab1
| Author | SHA1 | Date | |
|---|---|---|---|
| 3eacc59ef9 | |||
| f50bbca48e | |||
| 7a84db633c | |||
| 64d6638cc3 |
+14
@@ -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
|
||||||
@@ -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.
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
restart: unless-stopped
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
environment:
|
||||||
|
PORT: "12402"
|
||||||
|
ports:
|
||||||
|
- "12402:12402"
|
||||||
Reference in New Issue
Block a user