Skip to content

Commit

Permalink
add arm32v7 docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
camandel committed Aug 23, 2021
1 parent 43226d0 commit db79034
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
28 changes: 28 additions & 0 deletions Dockerfile.arm32v7
@@ -0,0 +1,28 @@
# builder ################################################################################################
FROM python:3.8-slim-buster as builder
RUN apt-get update && apt-get install -y \
build-essential \
libffi-dev \
libssl-dev \
rustc \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*
RUN python -m pip wheel --wheel-dir=/usr/src/wheel cryptography==3

# final image ############################################################################################
FROM python:3.8-slim-buster
ARG APP_DIR=/usr/src/snappass
COPY --from=builder /usr/src/wheel /usr/src/wheel
RUN groupadd -r snappass && \
useradd -r -g snappass snappass && \
mkdir -p ${APP_DIR}
WORKDIR ${APP_DIR}
COPY ["setup.py", "MANIFEST.in", "README.rst", "AUTHORS.rst", "${APP_DIR}/"]
COPY ["./snappass", "${APP_DIR}/snappass"]
RUN python -m pip install /usr/src/wheel/*.whl && \
python setup.py install && \
chown -R snappass ${APP_DIR} && \
chgrp -R snappass ${APP_DIR}
USER snappass
EXPOSE 5000
CMD ["snappass"]
3 changes: 2 additions & 1 deletion README.rst
Expand Up @@ -19,7 +19,8 @@ New features
- moved from Bootstrap 3 to Bootstrap 5
- moved from FontAwsome to Bootstrap 5 Icons
- moved from JQuery to vanilla javascript
- changed static directory structure
- changed static directory structure
- multi-arch docker image (camandel/snappass)

.. _snappass: https://github.com/pinterest/snappass

Expand Down

0 comments on commit db79034

Please sign in to comment.