Skip to content

Dockerfile #12

Description

@gpasqualetti

I have been tried to run gpodder2go in a dockerized environment but I have not been fully successful yet. I was wondering if somebody already managed to do it.

This is the Dockerfile I wrote (not working)

# Use a base image
FROM golang:1.16-alpine

ENV VERIFIER_SECRET_KEY='test'
EXPOSE 3005

# Set working directory
WORKDIR /app

# Install dependencies
# Musl-dev is required to fix stdlib.h
RUN apk update && apk add --no-cache wget git gcc musl-dev make sqlite 
RUN apk add --no-cache curl \     
  && curl -L https://github.com/golang-migrate/migrate/releases/download/v4.15.2/migrate.linux-armv7.tar.gz | tar xzv \
  && mv migrate /usr/local/bin/migrate \     
  && apk del curl

# Pull source code
RUN git clone https://github.com/oxtyped/gpodder2go.git /app/gpodder2go

# Make
RUN cd /app/gpodder2go && make build

# Init
RUN cd gpodder2go && ./gpodder2go init

# Run
CMD ["sh", "-c", "echo $VERIFIER_SECRET_KEY && /app/gpodder2go/gpodder2go serve"]

# Create a new user
RUN cd /app/gpodder2go && ./gpodder2go accounts create username --email="myemail@test.com" --name="MyName" --password="mypasswd"

I build and run it with

docker build . -t gpodder2go:latest
docker run -dp 3005:3005 gpodder2go:latest

When I look at the the logs it seems like being starting fine.

2023/04/01 17:30:15 💻 Starting server at localhost:3005

However, when I try to sync with AntennaPod, it sais that the connection failed. Same thing with the gPodder Desktop client. Any hint?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions