-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a3c7aa
commit 6bc8a6d
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |