Files
projects/Dockers/iac-ssh-authorized-keys/Dockerfile
T

21 lines
335 B
Docker

# Use the official Python image from the Docker Hub
FROM python:3.9-slim
# Set environment variable for Python
ENV PYTHONUNBUFFERED=1
# Install Flask
RUN pip install flask
# Create a directory for the app
WORKDIR /app
# Copy the app files
COPY . /app
# Expose port 8080
EXPOSE 8080
# Run the application
CMD ["python", "app.py"]