1
0
mirror of https://github.com/tommytran732/Matrix.to-Docker synced 2024-09-16 14:14:42 -04:00
Matrix.to-Docker/Dockerfile

30 lines
544 B
Docker
Raw Normal View History

FROM node:alpine
LABEL maintainer="Thien Tran contact@tommytran.io"
ARG UID=992
ARG GID=992
RUN apk -U upgrade \
&& apk --no-cache add git \
&& adduser -g ${GID} -u ${UID} --disabled-password --gecos "" matrix-to
USER matrix-to
WORKDIR /home/matrix-to
RUN git clone https://github.com/matrix-org/matrix.to
COPY element.patch /home/matrix-to/matrix.to
WORKDIR /home/matrix-to/matrix.to
RUN git apply /home/matrix-to/matrix.to/element.patch \
2023-10-15 07:30:40 -04:00
&& rm -rf .git \
&& yarn \
&& yarn build
EXPOSE 5000
ENTRYPOINT ["yarn", "start"]