mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-17 09:23:07 +02:00
fix(docker): permissions
This commit is contained in:
parent
978eb92781
commit
036cbaf47e
@ -16,7 +16,8 @@ COPY --link . .
|
|||||||
FROM node:18-alpine AS runner
|
FROM node:18-alpine AS runner
|
||||||
RUN apk --no-cache add curl \
|
RUN apk --no-cache add curl \
|
||||||
&& adduser --disabled-password --home /home/container container \
|
&& adduser --disabled-password --home /home/container container \
|
||||||
&& mkdir /app
|
&& mkdir /app \
|
||||||
|
&& chmod -R 777 /app
|
||||||
USER container
|
USER container
|
||||||
ENV USER=container \
|
ENV USER=container \
|
||||||
HOME=/home/container \
|
HOME=/home/container \
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
if [ "$DOCKER" = "true" ]; then
|
if [ "$DOCKER" = "true" ]; then
|
||||||
base_dir="/app"
|
base_dir="/app"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user