forked from mastodon/mastodon
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.sidekiq.poz.world
29 lines (22 loc) · 1.11 KB
/
Dockerfile.sidekiq.poz.world
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
ARG TAG=latest \
AZURE_STORAGE_CONNECTION_STRING=${AZURE_STORAGE_CONNECTION_STRING} \
AZURE_STORAGE_CONTAINER_NAME=${AZURE_STORAGE_CONTAINER_NAME} \
MASTODON_VERSION_METADATA=${MASTODON_VERSION_METADATA:-''} \
MASTODON_VERSION_PRERELEASE=${MASTODON_VERSION_PRERELEASE:-'nightly'}
FROM ghcr.io/poz-world/poz.world:${TAG} AS base
ENV TZ=EST5EDT \
WEBSITE_TIME_ZONE=EST5EDT \
PATH="${PATH}:/opt/ruby/bin:/opt/mastodon/bin" \
RAILS_ENV=production \
NODE_ENV=production \
AZURE_STORAGE_CONNECTION_STRING=${AZURE_STORAGE_CONNECTION_STRING} \
AZURE_STORAGE_CONTAINER_NAME=${AZURE_STORAGE_CONTAINER_NAME} \
MASTODON_VERSION_METADATA=${MASTODON_VERSION_METADATA} \
MASTODON_VERSION_PRERELEASE=${MASTODON_VERSION_PRERELEASE}
SHELL ["/bin/bash", "-o", "pipefail", "-o", "errexit", "-c"]
EXPOSE 8082 2222
WORKDIR /opt/mastodon/bin
ENTRYPOINT [ "/bin/bash", "/opt/mastodon/bin/start-sidekiq" ]
LABEL org.opencontainers.image.description="Sidekiq for POZ.world"
LABEL org.opencontainers.image.source="https://github.com/justinwritescode/mastodon"
LABEL org.opencontainers.image.licenses="MIT"