Skip to content

Commit

Permalink
chore: update docs and dockerfile with updated file from mazer v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
antheiz committed Aug 7, 2023
1 parent b1627ff commit c31d3c8
Show file tree
Hide file tree
Showing 823 changed files with 84,969 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
### Flask ###
instance/*
!instance/.gitignore
.webassets-cache
.env

### Flask.Python Stack ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class


# Translations
*.mo
*.pot

# Environments
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM python:3-alpine

# Create app directory
WORKDIR /app

# Install app dependencies
COPY requirements.txt ./

RUN pip install -r requirements.txt

# Bundle app source
COPY . .

EXPOSE 5000
ENV FLASK_APP=run.py
ENV FLASK_DEBUG=1

CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0", "--port=5000"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
or clone the repo :

```
$ git clone https://github.com/antheiz/mazer-flask
$ git clone https://github.com/antheiz/mazer-flask.git
```

2. Make virtual environment
Expand Down Expand Up @@ -58,7 +58,7 @@ or clone the repo :

### Building with Docker

- Clone the repository `git clone https://github.com/zuramai/mazer`
- Clone the repository `git clone https://github.com/antheiz/mazer-flask.git`
- Make sure you have Docker installed and run:
- `docker build -t mazer-flask .`
- `docker run -it -d -p 5000:5000 --name mazer mazer-flask`
Expand Down
Loading

0 comments on commit c31d3c8

Please sign in to comment.