Skip to content

Commit 6626944

Browse files
authored
Merge pull request #5 from sandwichcloud/fixdocker
fix docker build
2 parents 91dbaea + 5e8b8c8 commit 6626944

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Dockerfile

+7-6
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@ WORKDIR /usr/src/app
99

1010
# Install build time dependencies for uwsgi
1111
# Install uwsgi and dumb-init
12-
# Remove build time dependencies
13-
# Install runtime dependencies
1412
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
1915

2016
# COPY tar.gz from build container
2117
# Install it
@@ -25,6 +21,11 @@ COPY --from=0 /usr/src/app/dist/. .
2521
RUN bash -c "pip install *"
2622
COPY wsgi.ini wsgi.ini
2723

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+
2829
# add entrypoint
2930
COPY docker-entrypoint.sh /bin/docker-entrypoint.sh
3031

docker-entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#!/usr/bin/dumb-init /bin/bash
1+
#!/usr/bin/dumb-init /bin/sh
22

33
uwsgi --ini wsgi.ini

0 commit comments

Comments
 (0)