Skip to content

Commit

Permalink
Dockerfile: optimize layers
Browse files Browse the repository at this point in the history
  • Loading branch information
stynoo committed Dec 20, 2024
1 parent 198591c commit ac82ad3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
FROM python:3.12-alpine

ENV PROJECT=withings-sync
ENV PACKAGE=withings_sync
ENV PROJECT_DIR=/home/$PROJECT
ENV PROJECT="withings-sync" \
PACKAGE="withings_sync"

RUN apk --no-cache add supercronic

RUN adduser -D $PROJECT

ENV PROJECT_DIR="/home/${PROJECT}"

USER $PROJECT
WORKDIR $PROJECT_DIR

Expand Down

0 comments on commit ac82ad3

Please sign in to comment.