adding in improvements from when we ran the birthday party app. Mostly fixed the Dockerfiles so they use Alpine for the base images. That required re-working the Java worker Docker file. Removed links from compose file. cleaned up a few things like a tab instead of a space in app.py
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
# Using official python runtime base image
|
||||
FROM python:2.7
|
||||
FROM python:2.7-alpine
|
||||
|
||||
# Set the application directory
|
||||
WORKDIR /app
|
||||
@ -11,8 +11,8 @@ RUN pip install -r requirements.txt
|
||||
# Copy our code from the current folder to /app inside the container
|
||||
ADD . /app
|
||||
|
||||
# Make port 5000 available for links and/or publish
|
||||
EXPOSE 80
|
||||
# Make port 80 available for links and/or publish
|
||||
EXPOSE 80
|
||||
|
||||
# Define our command to be run when launching the container
|
||||
CMD ["python", "app.py"]
|
||||
|
Reference in New Issue
Block a user