File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,9 @@ WORKDIR /usr/src/app
9
9
10
10
# Install build time dependencies for uwsgi
11
11
# Install uwsgi and dumb-init
12
- # Remove build time dependencies
13
- # Install runtime dependencies
14
12
RUN apk --no-cache add --virtual build-deps \
15
- build-base linux-headers pcre-dev postgresql-dev && \
16
- pip install uwsgi dumb-init psycopg2 && \
17
- apk del build-deps && \
18
- apk --no-cache add bash openssl pcre libpq ca-certificates
13
+ build-base bash linux-headers pcre-dev postgresql-dev && \
14
+ pip install uwsgi dumb-init
19
15
20
16
# COPY tar.gz from build container
21
17
# Install it
@@ -25,6 +21,11 @@ COPY --from=0 /usr/src/app/dist/. .
25
21
RUN bash -c "pip install *"
26
22
COPY wsgi.ini wsgi.ini
27
23
24
+ # Remove build time dependencies
25
+ # Install runtime dependencies
26
+ RUN apk del build-deps && \
27
+ apk --no-cache add openssl pcre libpq ca-certificates
28
+
28
29
# add entrypoint
29
30
COPY docker-entrypoint.sh /bin/docker-entrypoint.sh
30
31
Original file line number Diff line number Diff line change 1
- #! /usr/bin/dumb-init /bin/bash
1
+ #! /usr/bin/dumb-init /bin/sh
2
2
3
3
uwsgi --ini wsgi.ini
You can’t perform that action at this time.
0 commit comments