-
Notifications
You must be signed in to change notification settings - Fork 439
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Docker related files, update documentation
- Loading branch information
1 parent
70e2e71
commit 9cd1ec3
Showing
4 changed files
with
84 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,2 @@ | ||
**/node_modules | ||
**/.meteor/local |
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,37 @@ | ||
# The tag here should match the Meteor version of your app, per .meteor/release | ||
FROM geoffreybooth/meteor-base:1.10.2 | ||
|
||
# Copy app package.json and package-lock.json into container | ||
COPY ./package*.json $APP_SOURCE_FOLDER/ | ||
|
||
RUN bash $SCRIPTS_FOLDER/build-app-npm-dependencies.sh | ||
|
||
# Copy app source into container | ||
COPY ./ $APP_SOURCE_FOLDER/ | ||
|
||
RUN bash $SCRIPTS_FOLDER/build-meteor-bundle.sh | ||
|
||
|
||
# Use the specific version of Node expected by your Meteor release, per https://docs.meteor.com/changelog.html; this is expected for Meteor 1.10.2 | ||
FROM node:12.16.1-alpine | ||
|
||
ENV APP_BUNDLE_FOLDER /opt/bundle | ||
ENV SCRIPTS_FOLDER /docker | ||
|
||
# Runtime dependencies; if your dependencies need compilation (native modules such as bcrypt) or you are using Meteor <1.8.1, use app-with-native-dependencies.dockerfile instead | ||
RUN apk --no-cache add \ | ||
bash \ | ||
ca-certificates | ||
|
||
# Copy in entrypoint | ||
COPY --from=0 $SCRIPTS_FOLDER $SCRIPTS_FOLDER/ | ||
|
||
# Copy in app bundle | ||
COPY --from=0 $APP_BUNDLE_FOLDER/bundle $APP_BUNDLE_FOLDER/bundle/ | ||
|
||
RUN bash $SCRIPTS_FOLDER/build-meteor-npm-dependencies.sh | ||
|
||
# Start app | ||
ENTRYPOINT ["/docker/entrypoint.sh"] | ||
|
||
CMD ["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
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,26 @@ | ||
version: '3' | ||
|
||
services: | ||
app: | ||
image: dmandrioli/semantic-segmentation-editor | ||
volumes: | ||
- "${SSE_IMAGES}:/root/sse-images:rw" | ||
ports: | ||
- '80:3000' | ||
depends_on: | ||
- mongo | ||
environment: | ||
ROOT_URL: ${APP_ROOT_URL:-http://localhost} | ||
MONGO_URL: mongodb://mongo:27017/meteor | ||
PORT: 3000 | ||
METEOR_SETTINGS: ${METEOR_SETTINGS} | ||
|
||
mongo: | ||
image: mongo:latest | ||
command: | ||
- --storageEngine=wiredTiger | ||
volumes: | ||
- data:/data/db | ||
|
||
volumes: | ||
data: |