Created
June 3, 2018 16:27
-
-
Save devries/2df9b7631f09adeed5bd1c5a76fe5af5 to your computer and use it in GitHub Desktop.
Alpine Python Dockerfile notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.6-alpine | |
RUN apk add --update \ | |
gcc \ | |
make \ | |
musl-dev \ | |
libuv-dev \ | |
linux-headers \ | |
libxml2-dev \ | |
libxslt-dev \ | |
&& rm -rf /var/cache/apk/* | |
RUN addgroup -g 2000 apprunner | |
RUN adduser -u 2000 -g apprunner -S apprunner | |
# Do whatever pips here | |
# Copy everything into /app | |
WORKDIR /app | |
RUN chown -R apprunner:apprunner /app | |
# Expose any ports | |
USER apprunner | |
# Place ENV and CMD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment