File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 1
1
FROM node:10-slim
2
2
3
+ # add curl for healthcheck
4
+ RUN apt-get update \
5
+ && apt-get install -y --no-install-recommends \
6
+ curl \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ # Add Tini for proper init of signals
10
+ ENV TINI_VERSION v0.19.0
11
+ ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
12
+ RUN chmod +x /tini
13
+
3
14
WORKDIR /app
4
15
16
+ # have nodemon available for local dev use (file watching)
5
17
RUN npm install -g nodemon
6
18
7
19
COPY package*.json ./
@@ -16,4 +28,4 @@ ENV PORT 80
16
28
17
29
EXPOSE 80
18
30
19
- CMD ["node" , "server.js" ]
31
+ CMD ["/tini" , "--" , " node" , "server.js" ]
Original file line number Diff line number Diff line change 1
1
# Using official python runtime base image
2
- FROM python:2.7-alpine
2
+ FROM python:3.9-slim
3
+
4
+ # add curl for healthcheck
5
+ RUN apt-get update \
6
+ && apt-get install -y --no-install-recommends \
7
+ curl \
8
+ && rm -rf /var/lib/apt/lists/*
3
9
4
10
# Set the application directory
5
11
WORKDIR /app
6
12
7
13
# Install our requirements.txt
8
- ADD requirements.txt /app/requirements.txt
14
+ COPY requirements.txt /app/requirements.txt
9
15
RUN pip install -r requirements.txt
10
16
11
17
# Copy our code from the current folder to /app inside the container
12
- ADD . /app
18
+ COPY . .
13
19
14
20
# Make port 80 available for links and/or publish
15
21
EXPOSE 80
You can’t perform that action at this time.
0 commit comments