-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdev.Dockerfile
37 lines (27 loc) · 964 Bytes
/
dev.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
# Dockerfile for EatIT in development
FROM debian:jessie
MAINTAINER digIT <digit@chalmers.it>
ENV METEOR_VERSION 1.6.1
# Setup unprivileged user
RUN groupadd -r meteor && useradd -m -g meteor meteor
# Install prerequisites
RUN apt-get update && apt-get install -y \
curl locales grep git
# Change ownership and su unprivileged user
RUN mkdir /app && chown -R meteor:meteor /app
USER meteor:meteor
# Install meteor
RUN curl https://install.meteor.com/?release=$METEOR_VERSION | sh
USER root:root
RUN cp /home/meteor/.meteor/packages/meteor-tool/$METEOR_VERSION/mt-os.linux.x86_64/scripts/admin/launch-meteor /usr/bin/meteor
# Setup locales
RUN cat /usr/share/i18n/SUPPORTED | grep en_US >> /etc/locale.gen
RUN locale-gen en_US.UTF-8
RUN update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
# Mount source files
VOLUME /app
# Switch to unprivileged user
USER meteor:meteor
WORKDIR /app
# Install dependencies and run!
CMD meteor npm install && meteor run