-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (35 loc) · 1.47 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#FROM tozd/meteor:ubuntu-xenial
#FROM jshimko/meteor-launchpad:devbuild
#FROM johnnyutahio/meteor-launchpad:latest
FROM martinezko/alpine-meteor:latest
#deploy development image
# # The tag here should match the Meteor version of your app, per .meteor/release
# FROM geoffreybooth/meteor-base:1.7.0.3
# # 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
# # Rather than Node 8 latest (Alpine), you can also use the specific version of Node expected by your Meteor release, per https://docs.meteor.com/changelog.html
# FROM node:8-alpine
# ENV APP_BUNDLE_FOLDER /opt/bundle
# ENV SCRIPTS_FOLDER /docker
# # Install OS build dependencies, which we remove later after we’ve compiled native Node extensions
# RUN apk --no-cache --virtual .node-gyp-compilation-dependencies add \
# g++ \
# make \
# python \
# # And runtime dependencies, which we keep
# && 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 \
# && apk del .node-gyp-compilation-dependencies
# # Start app
# ENTRYPOINT ["/docker/entrypoint.sh"]
# CMD ["node", "main.js"]