Fix Linux build permissions
This commit is contained in:
parent
d18888a53d
commit
1b8e43bec8
2 changed files with 1 additions and 12 deletions
|
@ -11,11 +11,6 @@ ENV SOURCE_DATE_EPOCH=0
|
|||
# as an environment variable and use that instead.
|
||||
ARG NODE_VERSION
|
||||
|
||||
# User for building. electron-builder works better when not running as root.
|
||||
ARG USERNAME=signaluser
|
||||
ARG USER_UID=1000
|
||||
ARG USER_GID=$USER_UID
|
||||
|
||||
ENV SIGNAL_ENV=production
|
||||
|
||||
# ---
|
||||
|
@ -57,12 +52,6 @@ RUN git config --global --add safe.directory /project
|
|||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
||||
|
||||
# Use non-root user for build.
|
||||
RUN groupadd --gid $USER_GID $USERNAME \
|
||||
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME
|
||||
|
||||
USER $USERNAME
|
||||
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
|
||||
# Specify build type using CMD, which affects the app version and name of the resulting package.
|
||||
|
|
|
@ -33,4 +33,4 @@ fi
|
|||
# Perform the build by mounting the project into the container and passing in the 1st command line
|
||||
# arg to select the build type (e.g. "public"). The container runs docker-entrypoint.sh.
|
||||
# After the process is finished, the resulting package is located in the ./release/ directory.
|
||||
docker run --rm -v "$(pwd)":/project -w /project --user "$(id -u):$(id -g)" -e SOURCE_DATE_EPOCH=$source_date_epoch signal-desktop $1
|
||||
docker run --rm -v "$(pwd)":/project -w /project -e SOURCE_DATE_EPOCH=$source_date_epoch signal-desktop $1
|
||||
|
|
Loading…
Reference in a new issue