-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ac7af2
commit 0572d1a
Showing
4 changed files
with
56 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#Ignore files to copy inside the container | ||
# Ignore files to copy inside the container | ||
volumes | ||
venv | ||
__pycache__ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,36 @@ | ||
|
||
#Pull the official base image | ||
# Creazione dell'immagine docker | ||
################################ | ||
# Immagine base di partenza | ||
FROM python:3.6-slim-buster | ||
|
||
#set the working directory | ||
# Metadati, etichette | ||
LABEL name="pythonbiellagroupsite_docker" | ||
LABEL maintainer="pythonbiellagroup@gmail.com" | ||
LABEL version="1.0" | ||
|
||
# Directory di lavoro (se non esiste viene creata) | ||
WORKDIR /usr/src/app | ||
|
||
#Set environment variables | ||
# Variabili di ambiente | ||
ENV PYTHONDONTWRITEBYTECODE 1 | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
# install system dependencies | ||
# RUN:esecuzione di comandi | ||
# Installazione dipendenze di sistema | ||
RUN apt-get update && apt-get install -y netcat | ||
|
||
#install dependencies | ||
# Installazione e aggiornamento pip | ||
RUN pip install --upgrade pip | ||
COPY ./requirements.txt /usr/src/app/requirements.txt | ||
# Installazione dipendenze progetto | ||
RUN pip install -r requirements.txt | ||
|
||
#Copy Project | ||
# Copia del progetto dal disco a dentro il container | ||
COPY . /usr/src/app/ | ||
|
||
#Entrypoint.sh to run the bash script for db | ||
#remember to set permissions to the file: chmod +x ./entrypoint.sh | ||
# Entrypoint.sh to run the bash script for db | ||
# Remember to set permissions to the file: chmod +x ./entrypoint.sh | ||
ENTRYPOINT ["/usr/src/app/entrypoint.sh"] | ||
|
||
# Verifica valorizzazione variabili di ambiente | ||
RUN echo $FLASK_CONFIG | ||
RUN echo $DB | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.