Skip to content

Commit

Permalink
Setting up docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaConcon committed Jul 18, 2019
1 parent 154d3cc commit 2c9dd26
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions utscfood-api/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Use an official Python runtime as a parent image
FROM python:3.7-slim

# Set the working directory to /app
WORKDIR /app

# Copy the current directory contents into the container at /app
COPY . /app

# Install any needed packages specified in requirements.txt
RUN pip install --trusted-host pypi.python.org -r requirements.txt

# Make port 80 available to the world outside this container
EXPOSE 80

# Define environment variable
ENV NAME World

# Run app.py when the container launches
CMD ["python", "app.py"]
File renamed without changes.
2 changes: 2 additions & 0 deletions utscfood-api/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Flask
Redis

0 comments on commit 2c9dd26

Please sign in to comment.