Skip to content

Commit

Permalink
Dockerfile Change
Browse files Browse the repository at this point in the history
  • Loading branch information
lucca93 committed Oct 29, 2023
1 parent 9c98a43 commit e0b90f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 77 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Expand Up @@ -11,7 +11,7 @@ COPY backend/pyproject.toml backend/poetry.lock /app/

# Install dependencies without creating a virtual environment
RUN poetry config virtualenvs.create false \
&& poetry install --only main --no-interaction --no-ansi
&& poetry install --no-dev --no-interaction --no-ansi

# Install Gunicorn
RUN pip install gunicorn
Expand Down
59 changes: 0 additions & 59 deletions docker/Dockerfile_GitConnect

This file was deleted.

19 changes: 2 additions & 17 deletions docker/README.md
Expand Up @@ -2,40 +2,25 @@

This Docker setup is designed to build the Docker image for the LunchHeroes application, which can then be pushed to a Docker registry and deployed on a server.

# Important Links
- The server is hosted on [Flow Swiss](https://my.flow.swiss/).
- Repo is on DockerHub: [Dockerhub]https://hub.docker.com/repository/docker/lucca93/lunchheroes
- Link to Live App: http://app.lunchhero.ch/ or https://env-9057938.appengine.flow.ch/


## Preliminary Steps

1. **Building the Docker Image**
To build the Docker image, navigate to the LunchHeroes and run the following command:
```bash
docker build -t lunchheroes -f docker/Dockerfile .
```
Build the Docker Image directly from the Git Repo.
To build the Docker image, navigate to the directory containing the Dockerfile and run the following command:
```bash
docker build -t lunchheroes -f docker/Dockerfile_GitConnect .
docker push lucca93/lunchheroes:latest
```

2. **Pushing Docker Image:**
- After building the Docker image, push it to your Docker registry using the following command:
```bash
docker push lucca93/lunchheroes:latest
```
3. **Redeploy Container in FlowEngine**
- Application Server
- Redeploy Container


<<<<<<< HEAD
**Server Hosting:**
- The server is hosted on [Flow Swiss](https://my.flow.swiss/).

=======
>>>>>>> a34e2f1731ef7ab569e9b273a1195ab4729d2df9
## File Descriptions

### Dockerfile
Expand Down

0 comments on commit e0b90f3

Please sign in to comment.