Skip to content

chneau/docker-meteor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-meteor

This is a very simple Docker image to use for Meteor.
Based on debian:bullseye-slim.

Quickstart

Get the correct Node version by running:

docker run --rm ghcr.io/chneau/meteor:3.0 meteor node --version
# v20.15.1

Add a Dockerfile to your project:

FROM ghcr.io/chneau/meteor:3.0 AS builder
WORKDIR /app
COPY --chown=meteor:meteor ./package*.json .
RUN meteor npm install
COPY --chown=meteor:meteor . .
RUN meteor build --server-only --directory bundle
RUN cd bundle/bundle/programs/server && meteor npm install

FROM node:20-bullseye-slim AS final
RUN useradd --no-create-home --shell /bin/bash meteor
USER meteor
WORKDIR /app
COPY --from=builder /app/bundle/bundle .
CMD exec node main.js

Add a .dockerignore:

node_modules
.meteor/local

About

A simple Docker image that allows you to build your projects

Topics

Resources

License

Stars

Watchers

Forks

Packages