Commit 2e2a1046 authored by Ruggero Lot's avatar Ruggero Lot

add docker file

parent 4c6ccb49
FROM python:3.7.2-alpine
RUN apk add --no-cache npm gcc g++
WORKDIR /app
COPY . /app
# Install any needed packages specified in requirements.txt
RUN pip3 install --upgrade pip && pip3 install pipenv
RUN pipenv install
RUN cd frontend &&\
npm install &&\
npm audit fix &&\
npm rebuild node-sass &&\
npm run build
# Make port available to the world outside this container
EXPOSE 5000
ENV FLASK_APP m_ship
CMD ["pipenv", "run", "flask", "run", "--host", "0.0.0.0"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment