-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
29 lines (20 loc) · 1012 Bytes
/
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
FROM ubuntu:focal
ENV METEOR_VERSION=3.0-rc.4
RUN apt -qy update && apt -qy install curl build-essential python3 git
RUN curl https://install.meteor.com/?release=$METEOR_VERSION | bash -e -x
COPY ./app /usr/src/app/
WORKDIR /usr/src/app/
RUN set -e -x; rm -rf packages/; mkdir packages; cd packages; \
git clone -b update-to-async https://@github.com/sebastianspiller/meteor-synced-cron; \
git clone -b feature/meteor-3-0-compat https://github.com/epfl-si/meteor-method
# Compile the API's documentation in a single file
RUN meteor npx apidoc --single -i server/ -o public/api/ -c apidoc.json
RUN meteor npm i
RUN BROWSERSLIST_IGNORE_OLD_DATA=1 meteor build --allow-superuser /usr --directory
RUN cd /usr/bundle/programs/server && meteor npm install
RUN ln /root/.meteor/packages/meteor-tool/*/*/dev_bundle/bin/node /usr/local/bin/node
FROM ubuntu:focal
COPY --from=0 /usr/bundle /usr/bundle/
COPY --from=0 /usr/local/bin/node /usr/local/bin/
WORKDIR /usr/bundle
CMD /usr/local/bin/node main.js