Skip to content

Commit

Permalink
fix(Dockerfile): edge tmp folder permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Aug 17, 2024
1 parent d52544e commit a590729
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
RUN mkdir -p repositories bin/drivers
RUN chown appuser -R /app

RUN mkdir -p /app/tmp

###############################################################################

FROM scratch as minimal
Expand All @@ -84,6 +86,8 @@ COPY --from=build /usr/share/zoneinfo/ /usr/share/zoneinfo/
# Copy the app into place
COPY --from=build /app/bin /bin

COPY --from=build --chown=10001:10001 /app/tmp /tmp

USER appuser:appuser

###############################################################################
Expand Down
14 changes: 7 additions & 7 deletions shard.lock
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ shards:

bindata:
git: https://github.com/spider-gazelle/bindata.git
version: 2.0.0
version: 2.1.0

connect-proxy:
git: https://github.com/spider-gazelle/connect-proxy.git
version: 2.0.1
version: 2.0.2

crc16:
git: https://github.com/maiha/crc16.cr.git
Expand All @@ -43,7 +43,7 @@ shards:

csuuid:
git: https://github.com/wyhaines/csuuid.cr.git
version: 1.0.1+git.commit.b71cf5c899dd5cde6aff8e922bdabd5e2dfab585
version: 1.0.1+git.commit.4cb8656a9214aede9c1840cad4acf8e55e658f2f

db:
git: https://github.com/crystal-lang/crystal-db.git
Expand Down Expand Up @@ -179,7 +179,7 @@ shards:

pg-orm:
git: https://github.com/spider-gazelle/pg-orm.git
version: 1.1.1+git.commit.282c353b676806eef73786645f8cd852cdb60bc3
version: 1.1.1+git.commit.b64df7fb114f391a4010bac5f337d5ac2c088992

place_calendar:
git: https://github.com/placeos/calendar.git
Expand All @@ -191,15 +191,15 @@ shards:

placeos-driver:
git: https://github.com/placeos/driver.git
version: 7.2.0
version: 7.2.1

placeos-log-backend:
git: https://github.com/place-labs/log-backend.git
version: 0.11.4

placeos-models:
git: https://github.com/placeos/models.git
version: 9.53.3
version: 9.57.1

placeos-resource:
git: https://github.com/place-labs/resource.git
Expand Down Expand Up @@ -255,7 +255,7 @@ shards:

splay_tree_map:
git: https://github.com/wyhaines/splay_tree_map.cr.git
version: 0.2.2
version: 0.3.0

ssh2:
git: https://github.com/spider-gazelle/ssh2.cr.git
Expand Down

0 comments on commit a590729

Please sign in to comment.