File tree 2 files changed +15
-11
lines changed 2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change
1
+ node_modules /
Original file line number Diff line number Diff line change @@ -2,21 +2,21 @@ FROM python:3
2
2
WORKDIR /code
3
3
4
4
# Node and webpack
5
- RUN apt-get update
6
- RUN apt-get install -y vim
7
- RUN apt-get install curl
8
- RUN apt-get -y install curl gnupg
9
- RUN curl -sL https://deb.nodesource.com/setup_11.x | bash -
10
- RUN apt-get -y install nodejs
5
+ RUN apt-get update -qq && \
6
+ apt-get install -y --no-install-recommends vim curl gnupg && \
7
+ apt-get clean && \
8
+ rm -rf /var/lib/apt/lists/*
9
+ RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
10
+ RUN apt-get install -y --no-install-recommends nodejs && \
11
+ apt-get clean && \
12
+ rm -rf /var/lib/apt/lists/*
11
13
RUN npm install -g yarn
12
14
13
- ADD requirements.txt /code/requirements.txt
15
+ ADD requirements.txt .
14
16
RUN pip install -r requirements.txt
15
17
16
- RUN yarn
17
-
18
- ADD . /code/
19
- RUN chmod +x *.sh
18
+ ADD package.json package-lock.json ./
19
+ RUN yarn install
20
20
21
21
# ENV should be configure from outside
22
22
# @see docker-compose.yaml
@@ -26,4 +26,7 @@ ENV DB_PASSWORD cuuhomientrung
26
26
ENV DB_HOSTNAME localhost
27
27
ENV DB_PORT 5432
28
28
29
+ ADD . /code/
30
+ RUN chmod +x *.sh
31
+
29
32
CMD ["bash" ,"-c" ,"env > .env && ./run_server.sh" ]
You can’t perform that action at this time.
0 commit comments