feat: Add Dockerfile and app.py for iac-ssh-authorized-keys service

This commit is contained in:
Bram Kelchtermans
2024-05-25 21:48:22 +02:00
parent f33450d407
commit 9c9a8c40b0
3 changed files with 53 additions and 1 deletions
@@ -0,0 +1,20 @@
# 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"]