-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathDockerfile
27 lines (23 loc) · 1.19 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
FROM node:0.10
MAINTAINER Daniel Dent (https://www.danieldent.com/)
ENV METEOR_VERSION 1.0.4.2
ENV METEOR_INSTALLER_SHA256 4020ef4d3bc257cd570b5b2d49e3490699c52d0fd98453e29b7addfbdfba9c80
ENV METEOR_LINUX_X86_32_SHA256 358a45e9d852f4b83e74d43d82a07016c6ca2a81f2fad97108287ee3b36106aa
ENV METEOR_LINUX_X86_64_SHA256 569e7c2763c6a9024f880bcf235d9d1650a60b4770b88abf6f6f3902b5e75cc0
ENV TARBALL_URL_OVERRIDE https://github.com/DanielDent/docker-meteor/releases/download/v${RELEASE}/meteor-bootstrap-${PLATFORM}-${RELEASE}.tar.gz
# 1. Download & verify the meteor installer.
# 2. Patch it to validate the meteor tarball's checksums.
# 3. Install meteor
COPY meteor-installer.patch /tmp/meteor/meteor-installer.patch
COPY vboxsf-shim.sh /usr/local/bin/vboxsf-shim
RUN curl -SL https://install.meteor.com/ -o /tmp/meteor/inst \
&& sed -e "s/^RELEASE=.*/RELEASE=\"\$METEOR_VERSION\"/" /tmp/meteor/inst > /tmp/meteor/inst-canonical \
&& echo $METEOR_INSTALLER_SHA256 /tmp/meteor/inst-canonical | sha256sum -c \
&& patch /tmp/meteor/inst /tmp/meteor/meteor-installer.patch \
&& chmod +x /tmp/meteor/inst \
&& /tmp/meteor/inst \
&& rm -rf /tmp/meteor
VOLUME /app
WORKDIR /app
EXPOSE 3000
CMD [ "meteor" ]