From 8386109e190a8e49f35fb5e590fd38469735ae39 Mon Sep 17 00:00:00 2001 From: Alie Date: Fri, 23 Feb 2024 17:46:54 +0100 Subject: [PATCH] workdir does not persist layered images --- Cargo.lock | 2 +- Cargo.toml | 2 +- Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5d22a3a..d401c2f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -984,7 +984,7 @@ dependencies = [ [[package]] name = "mastodon-image-uploader-bot" -version = "1.0.0" +version = "1.0.1" dependencies = [ "async-std", "log", diff --git a/Cargo.toml b/Cargo.toml index 6ba92ef..3771e48 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mastodon-image-uploader-bot" -version = "1.0.0" +version = "1.0.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/Dockerfile b/Dockerfile index aa4793f..cde22ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,7 +41,7 @@ EOF # reproducability is important, consider using a digest # (e.g., debian@sha256:ac707220fbd7b67fc19b112cee8170b41a9e97f703f588b2cdbbcdcecdd8af57). FROM debian:bullseye-slim AS final - +WORKDIR /app # Create a non-privileged user that the app will run under. # See https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#user ARG UID=10001