forked from TuringCom/backend_challenge_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (25 loc) · 742 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
31
32
33
34
35
36
FROM mysql:5.7
MAINTAINER Peter Adeoye <[email protected]>
# SETUP DATABASES
ENV MYSQL_DATABASE 'turing'
ENV MYSQL_ROOT_PASSWORD 'root'
ENV MYSQL_USER 'turing'
ENV MYSQL_PASSWORD 'turing'
COPY ./database/dump.sql /docker-entrypoint-initdb.d/dump.sql
ENV NODE_ENV=development
COPY package.json package-lock.json ./
RUN apt-get update && \
apt-get install curl software-properties-common make -y && \
curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get update && \
apt-get install -y \
nodejs
RUN apt-get install build-essential -y
RUN mkdir /backend
WORKDIR /
COPY package-*.json .
RUN npm install
COPY . .
EXPOSE 80
COPY turing-entrypoint.sh /turing-entrypoint.sh
CMD ["sh", "turing-entrypoint.sh"]