Skip to content

Commit a1c7275

Browse files
committed
update mastodon
1 parent cec647c commit a1c7275

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
FROM tootsuite/mastodon-streaming:v4.3.0 as streaming
2+
13
FROM tootsuite/mastodon:v4.3.0
24

35
USER root
46
RUN mkdir -p /var/cache/apt/archives/partial && \
57
apt-get clean && \
68
apt-get update && \
7-
apt-get install -y --no-install-recommends tmux
9+
apt-get install -y --no-install-recommends tmux nodejs
810

911
RUN wget "https://github.com/caddyserver/caddy/releases/download/v2.6.2/caddy_2.6.2_linux_amd64.deb" -O caddy.deb && \
1012
dpkg -i caddy.deb
@@ -16,5 +18,7 @@ RUN wget "https://github.com/DarthSim/overmind/releases/download/v2.3.0/overmind
1618

1719
ADD Procfile Caddyfile /opt/mastodon/
1820

21+
COPY --from=streaming /opt/mastodon/node_modules/ /opt/mastodon/streaming/node_modules/
22+
1923
ENTRYPOINT []
2024
CMD ["./overmind", "start"]

fly.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ kill_timeout = 5
55

66
swap_size_mb = 1024
77

8+
[[vm]]
9+
memory = "512mb"
10+
811
## Uncomment if you are upgrading Mastodon. See README.md for details.
9-
[deploy]
10-
release_command = "bin/rails db:migrate"
12+
# [deploy]
13+
# release_command = "bin/rails db:migrate"
1114

1215
[env]
1316
LOCAL_DOMAIN = "social.python.it"

0 commit comments

Comments
 (0)