nolanlawson / pinafore

Alternative web client for Mastodon (UNMAINTAINED)
https://pinafore.social
GNU Affero General Public License v3.0
1.02k stars 172 forks source link

dockerhub official builds please! #2148

Open nergdron opened 2 years ago

nergdron commented 2 years ago

it'd be really good to have official builds of this in dockerhub from this repo, so that folks can use them with container orchestration systems without having to build and host the containers themselves. it's fairly difficult for me to make my own docker build and publish job whenever your upstream codebase does a release, but it'd be pretty easy for you to do that, and then folks would know the image came from you.

Kirk1984 commented 1 year ago

Just if it helps:

I created a quick and dirty Dockerfile to simplify the build process.

FROM node:16-alpine

# Pushing all files into image
WORKDIR /app
RUN apk --no-cache add git
RUN git clone --depth=1 https://github.com/nolanlawson/pinafore.git .
# Install Pinafore
RUN yarn --production --pure-lockfile && \
    yarn build && \
    yarn cache clean && \
    rm -rf ./src ./docs ./tests ./bin

# Expose port 4002
EXPOSE 4002

# Setting run-command, using explicit `node` command
# rather than `yarn` or `npm` to use less memory
# https://github.com/nolanlawson/pinafore/issues/971
CMD PORT=4002 node server.js

That way i don't have to clone the repo to build it. It works with the docker-compose.yml from the repo minus the build stuff.