Skip to content
Snippets Groups Projects
Commit d18e52fa 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
FROM registry.hub.docker.com/library/python:3.9-alpine3.14 FROM registry.hub.docker.com/library/python:3.9-alpine3.14
WORKDIR /app WORKDIR /app
COPY requirements.txt ./ COPY requirements.txt ./
RUN pip install -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt
COPY * ./ COPY * ./
EXPOSE 8080 EXPOSE 8080
ENV FORWARDED_ALLOW_IPS "*" ENV FORWARDED_ALLOW_IPS "*"
......
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
import json import json
import os import os
import docker import docker
from flask import Flask, request from flask import Flask, request
app = Flask(__name__) app = Flask(__name__)
client = docker.from_env() 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