mirror of
https://github.com/tmdinosaurcenter/kiosk-guestbook.git
synced 2025-09-13 19:03:32 -06:00
Lint and update docker-compose.yml
- Fixed port variable interpolation to use ${PORT:-8000} for a default value. - Updated volume configuration to use a named volume (guestbook_data) mounted at /data. - Improved YAML formatting for clarity.
This commit is contained in:
14
production.Dockerfile
Normal file
14
production.Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM python:3.9-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy and install Python dependencies.
|
||||
COPY requirements.txt requirements.txt
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy the rest of the app code.
|
||||
COPY . .
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
CMD ["python", "app.py"]
|
Reference in New Issue
Block a user