Skip to content
Snippets Groups Projects
Verified Commit 003d57d9 authored by Romain De Laage De Bellefaye's avatar Romain De Laage De Bellefaye
Browse files

[MastoGem] Bump to v1.0 and use build URL instead of custom image

parent 77a5706a
No related branches found
No related tags found
No related merge requests found
......@@ -28,14 +28,16 @@ services:
restart: unless-stopped
mastogem:
image: registry.picasoft.net/pica-mastogem:B1.1
image: registry.picasoft.net/pica-mastogem:1.0
container_name: mastogem
build: mastogem
build: https://git.rdelaage.ovh/rdelaage/mastoGem.git#1.0
volumes:
- ./certs/key.rsa:/key.rsa:ro
- ./certs/cert-toot.pem:/cert.pem:ro
environment:
MASTOGEM_CONFIG_PATH: /config.json
MASTODON_BASE_URL: "https://mamot.fr"
TITLE: "MastoGem de Picasoft"
HOME_MESSAGE: "Bienvenue sur le MastoGem de Picasoft, un proxy Mastodon pour Gemini.\n\nVous pouvez voir nos toots sur :\n=> /profile/138624 Profil de Picasoft"
networks:
- gemini
restart: unless-stopped
FROM golang:1.16.0-buster as BUILD
ARG VERSION=B1.1
RUN apt-get update && \
apt-get install -y curl && \
curl -L https://git.rdelaage.ovh/rdelaage/mastoGem/archive/${VERSION}.tar.gz -o mastogem.tar.gz && \
tar xzvf mastogem.tar.gz && \
cd mastogem && \
go build -o /mastogem
FROM debian:buster-slim
COPY --from=BUILD /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=BUILD /mastogem /mastogem
COPY start.sh /start.sh
RUN chmod +x /start.sh
CMD "/start.sh"
cat << EOF > /config.json
{
"listen": "0.0.0.0:1965",
"cert_path": "/cert.pem",
"key_path": "/key.rsa",
"base_url": "https://mamot.fr",
"title": "MastoGem de Picasoft",
"home_message": "Bienvenue sur le MastoGem de Picasoft, un proxy Mastodon pour Gemini.\n\nVous pouvez voir nos toots sur :\n=> /profile/138624 Profil de Picasoft"
}
EOF
/mastogem
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment