-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathDockerfile.dev
61 lines (49 loc) · 1.98 KB
/
Dockerfile.dev
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
50
51
52
53
54
55
56
57
58
59
60
61
# Adapted from https://github.com/disney/meteor-base/issues/48
# 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 meteor/node:14.21.4-alpine3.17
# Setup environment variables that will be available to the instance
ENV METEOR_VERSION 2.13.3
ENV PANDOC_VERSION 2.10.1
RUN apk add --update --no-cache bash curl
# Here we're running https://github.com/staeke/meteor-alpine/ with a few tweaks
RUN export TEMP_PACKAGES="alpine-sdk libc6-compat python3 graphicsmagick curl linux-headers" && \
apk add --update --no-cache $TEMP_PACKAGES && \
curl https://install.meteor.com/?release=${METEOR_VERSION} | sh && \
cd /root/.meteor/packages/meteor-tool/*/mt-os.linux.x86_64 && \
cp scripts/admin/launch-meteor /usr/bin/meteor && \
cd dev_bundle && \
cd bin && \
rm node && \
rm npm && \
rm npx && \
ln -s $(which node) && \
ln -s $(which npm) && \
ln -s $(which npx) && \
cd ../mongodb/bin && \
rm mongos mongod && \
cd ../../lib && \
npm rebuild && \
cd ~ && \
ln -s /root/.meteor
RUN curl -L https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-amd64.tar.gz | tar xz --strip-components 1 -C /usr/local/
ENV APP_HOME /latelier
# Create a directory for our application
# and set it as the working directory
RUN mkdir $APP_HOME
RUN mkdir $APP_HOME/.meteor
WORKDIR $APP_HOME
# Copy app and meteor package.json and package-lock.json into container
COPY package*.json $APP_HOME/
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
# Fix permissions warning; https://github.com/meteor/meteor/issues/7959
ENV METEOR_ALLOW_SUPERUSER=1
# Install gulp so we can run our servers, then npm install
# everything and rebuild node-sass
RUN npm ci --unsafe-perm && \
npm rebuild node-sass
COPY . $APP_HOME
EXPOSE 3000
EXPOSE 3030
RUN ls -rtlah
#CMD ["/bin/sh" , "-c" , "npm run start-dev"]
CMD ["/bin/sh" , "-c" , "sleep infinity"]