Skip to content

Commit

Permalink
Add workaround for broken /var/lock symlink in Alpine 3.21 image (#453
Browse files Browse the repository at this point in the history
)

Signed-off-by: Wouter Born <github@maindrain.net>
  • Loading branch information
wborn authored Dec 23, 2024
1 parent a7da174 commit f7e37ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ RUN version="$(echo $OPENHAB_VERSION | sed 's/snapshot/SNAPSHOT/g')" && \
COPY update ${OPENHAB_HOME}/runtime/bin/update
RUN chmod +x ${OPENHAB_HOME}/runtime/bin/update

# Workaround for broken /var/lock symlink, see: https://github.com/alpinelinux/docker-alpine/issues/433
# hadolint ignore=DL3059
RUN mkdir /run/lock

# Expose volume with configuration and userdata dir
VOLUME ${OPENHAB_CONF} ${OPENHAB_USERDATA} ${OPENHAB_HOME}/addons

Expand Down

0 comments on commit f7e37ac

Please sign in to comment.