feat: Add Dockerfile and app.py for iac-ssh-authorized-keys service
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user