Skip to content

Commit

Permalink
Minor improvements in dockerfile/docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
rafzei committed Jan 7, 2022
1 parent 66ac267 commit 4fd5154
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Could use distroless but Snyk found 23 issues
FROM python:3-alpine
LABEL 'org.opencontainers.image.authors'="Rafal Zeidler"
LABEL 'org.opencontainers.image.version'="0.1"
LABEL 'org.opencontainers.image.version'="0.1.0"
ARG DIR='http-api'

EXPOSE 5000

COPY ${DIR}/requirements.txt /app/requirements.txt

RUN pip install -r /app/requirements.txt && \
apk --update add shadow && \
RUN pip install --no-cache-dir -r /app/requirements.txt && \
apk --no-cache add shadow=4.8.1-r1 && \
rm -rf /var/cache/apk/* && \
groupadd -r app && \
useradd -g app -d /app -s /sbin/nologin app
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml → docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ services:
- 5000:5000

prometheus:
image: prom/prometheus:latest
image: prom/prometheus:v2.32.1
volumes:
- ./configs/prometheus/config.yml:/etc/prometheus/prometheus.yml
ports:
- 9090:9090

grafana:
image: grafana/grafana:latest
image: grafana/grafana:8.3.3
volumes:
- ./configs/grafana/config.ini:/etc/grafana/grafana.ini
- ./configs/grafana/datasource.yaml:/etc/grafana/provisioning/datasources/default.yaml
Expand Down

0 comments on commit 4fd5154

Please sign in to comment.