tabs
This commit is contained in:
parent
64adfd27e1
commit
d162c9be8d
|
@ -24,7 +24,7 @@ RUN apk add --no-cache whois nodejs yarn ca-certificates git bash \
|
||||||
ARG UID=1001
|
ARG UID=1001
|
||||||
ARG GID=1001
|
ARG GID=1001
|
||||||
RUN echo "Etc/UTC" > /etc/localtime && \
|
RUN echo "Etc/UTC" > /etc/localtime && \
|
||||||
mkdir -p /opt/mastodon && \
|
mkdir -p /opt/mastodon && \
|
||||||
addgroup --gid $GID mastodon && \
|
addgroup --gid $GID mastodon && \
|
||||||
adduser -D -h /opt/mastodon -u 991 -G mastodon -h /opt/mastodon mastodon && \
|
adduser -D -h /opt/mastodon -u 991 -G mastodon -h /opt/mastodon mastodon && \
|
||||||
echo "mastodon:`head /dev/urandom | tr -dc A-Za-z0-9 | head -c 24 | mkpasswd -s -m sha-256`" | chpasswd && \
|
echo "mastodon:`head /dev/urandom | tr -dc A-Za-z0-9 | head -c 24 | mkpasswd -s -m sha-256`" | chpasswd && \
|
||||||
|
@ -38,8 +38,8 @@ RUN git clone -b ${TAG} ${GIT_REPOSITORY} /opt/mastodon && \
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
WORKDIR /opt/mastodon
|
WORKDIR /opt/mastodon
|
||||||
RUN mkdir -p /opt/mastodon/.config/yarn/global && \
|
RUN mkdir -p /opt/mastodon/.config/yarn/global && \
|
||||||
touch /opt/mastodon/.config/yarn/global/.yarnclean && \
|
touch /opt/mastodon/.config/yarn/global/.yarnclean && \
|
||||||
gem install bundler:1.17.2 && \
|
gem install bundler:1.17.2 && \
|
||||||
bundle config set deployment 'true' && \
|
bundle config set deployment 'true' && \
|
||||||
bundle install -j$(nproc) --without development test --with production && \
|
bundle install -j$(nproc) --without development test --with production && \
|
||||||
yarn install --pure-lockfile
|
yarn install --pure-lockfile
|
||||||
|
|
Loading…
Reference in a new issue