-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
50 lines (40 loc) · 1.02 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
50
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive
# Update apt sources
RUN apt-get update && apt-get install --no-install-recommends -y \
tzdata \
git \
python \
build-essential \
locales \
make \
curl \
procps \
wget \
vim \
bzip2 \
libfontconfig \
ca-certificates \
tree \
npm \
gnupg
RUN curl -sL https://deb.nodesource.com/setup_9.x | bash
RUN apt-get install -y nodejs
RUN rm -rf /var/lib/apt/lists/*
# Configure timezone
RUN echo "UTC" > /etc/timezone && \
dpkg-reconfigure -f noninteractive tzdata
# Configure locales
RUN sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
RUN /usr/sbin/locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# /tmp doesn't have enough space, use /var/tmp instead
ENV TMPDIR /var/tmp
COPY app/package.json /app/package.json
RUN cd /app && npm install
RUN npm install -g serve
# Move source files
COPY app/ /app/
WORKDIR /app