mirror of
https://github.com/tommytran732/Matrix.to-Docker
synced 2024-09-07 18:23:30 -04:00
Build as unprivileged user
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
334aadf1f2
commit
6c717e1db0
16
Dockerfile
16
Dockerfile
@ -9,13 +9,17 @@ RUN apk -U upgrade \
|
||||
&& apk --no-cache add git \
|
||||
&& adduser -g ${GID} -u ${UID} --disabled-password --gecos "" matrix-to
|
||||
|
||||
RUN git clone https://github.com/matrix-org/matrix.to \
|
||||
&& cd matrix.to \
|
||||
&& yarn \
|
||||
&& yarn build
|
||||
|
||||
USER matrix-to
|
||||
|
||||
|
||||
WORKDIR /home/matrix-to
|
||||
|
||||
RUN git clone https://github.com/matrix-org/matrix.to
|
||||
|
||||
WORKDIR /home/matrix-to/matrix.to
|
||||
|
||||
RUN yarn \
|
||||
&& yarn build
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
ENTRYPOINT ["yarn", "start"]
|
||||
|
Loading…
Reference in New Issue
Block a user