-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
30 lines (22 loc) · 944 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
30
FROM node:boron
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install -y build-essential gcc g++ ca-certificates curl dos2unix
# Handle permissions issues on linux systems
RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4
RUN curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.4/gosu-$(dpkg --print-architecture)" \
&& curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/1.4/gosu-$(dpkg --print-architecture).asc" \
&& gpg --verify /usr/local/bin/gosu.asc \
&& rm /usr/local/bin/gosu.asc \
&& chmod +x /usr/local/bin/gosu
RUN npm install -g nodemon typescript
RUN mkdir -p /app
COPY ./docker /var/docker
RUN find /var/docker -name "*.sh" | xargs dos2unix
WORKDIR /app
EXPOSE 58585
EXPOSE 58586
EXPOSE 58587
EXPOSE 8888
ENTRYPOINT ["/var/docker/entrypoint.sh"]
CMD ["npm", "run", "start:dev"]