Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chneau/docker-meteor

A simple Docker image that allows you to build your projects
https://github.com/chneau/docker-meteor

docker meteor

Last synced: about 6 hours ago
JSON representation

A simple Docker image that allows you to build your projects

Awesome Lists containing this project

README

        

# 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:

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

Add a `Dockerfile` to your project:

```Dockerfile
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
```