pinafore icon indicating copy to clipboard operation
pinafore copied to clipboard

dockerhub official builds please!

Open nergdron opened this issue 2 years ago • 1 comments

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.

nergdron avatar Jun 01 '22 21:06 nergdron

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.

Kirk1984 avatar Nov 17 '22 20:11 Kirk1984