Skip to content
Snippets Groups Projects
Commit 5862d05c authored by nimrod's avatar nimrod
Browse files

Pre-commit fixes.

With the updated hooks, address some newly found issues:
- Sort Python imports with isort.
- Don't cache pip packages in the container image.
parent e6109547
No related branches found
No related tags found
No related merge requests found
Pipeline #2635 failed
FROM registry.hub.docker.com/library/python:3.9-alpine3.14
WORKDIR /app
COPY requirements.txt ./
RUN pip install -r requirements.txt
RUN pip install -r --no-cache-dir requirements.txt
COPY * ./
EXPOSE 8080
ENV FORWARDED_ALLOW_IPS "*"
......
......@@ -3,10 +3,10 @@
import json
import os
import docker
from flask import Flask, request
app = Flask(__name__)
client = docker.from_env()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment