Skip to content

Commit

Permalink
dockerize
Browse files Browse the repository at this point in the history
  • Loading branch information
foodelevator committed Nov 24, 2024
1 parent 6a3c7aa commit 6bc8a6d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM docker.io/debian:buster-slim AS build
WORKDIR /app

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y curl python2 build-essential && rm -rf /var/lib/apt/lists/*

RUN curl https://install.meteor.com/?release=1.3 | sh

COPY .meteor/packages .meteor/versions .meteor/release ./.meteor/

ENV NODE_TLS_REJECT_UNAUTHORIZED=0
RUN meteor list # Maybe you didn't expect the `list` subcommand to install dependencies. In that case, we have something in common.
COPY client client
COPY public public
COPY server server
RUN meteor build /dist --directory
RUN cd /dist/bundle/programs/server && meteor npm install --production
WORKDIR /dist/bundle
CMD ["meteor", "node", "main.js"]
16 changes: 16 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
services:
meta-tv:
build: .
init: true
environment:
- MONGO_URL=mongodb://tv:tv@mongo:27017/
- ROOT_URL=http://localhost:3000
- PORT=3000
ports: ["3000:3000"]
mongo:
image: docker.io/mongo:3.0
environment:
- MONGO_INITDB_ROOT_USERNAME=tv
- MONGO_INITDB_ROOT_PASSWORD=tv
- MONGO_INITDB_DATABASE=tv
ports: ["27017:27017"]

0 comments on commit 6bc8a6d

Please sign in to comment.