Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/chneau/docker-meteor
- Owner: chneau
- License: mit
- Created: 2017-11-09T08:21:08.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-24T15:47:28.000Z (14 days ago)
- Last Synced: 2024-10-25T21:37:48.821Z (13 days ago)
- Topics: docker, meteor
- Language: Dockerfile
- Homepage:
- Size: 84 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 installFROM 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
```