Last active
February 14, 2023 21:12
-
-
Save sqe/61b32eed69779e0e52bf0b2b4882adb9 to your computer and use it in GitHub Desktop.
Image tests for Stateful Web Service
This file contains hidden or 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 alpine:latest | |
MAINTAINER Aziz Kurbanov <[email protected]> | |
# up | |
RUN apk update | |
# Install bash | |
RUN apk add --no-cache --update-cache bash | |
# Install python | |
RUN apk add --no-cache python | |
# Install UWSGI | |
RUN apk add --no-cache uwsgi | |
# Install postgresql | |
RUN apk add --no-cache postgresql | |
# Install pip | |
RUN apk add --no-cache py-pip | |
# Install Flask | |
RUN pip install flask | |
# Install gunicorn | |
RUN pip install gunicorn | |
# Install git | |
RUN apk add --no-cache git | |
# Clean up | |
# RUN rm -rf /var/cache/apk/* | |
CMD ["/bin/bash"] | |
This file contains hidden or 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
sqapy@sqapy-x201:~/for_docker$ sudo docker images | |
REPOSITORY TAG IMAGE ID CREATED SIZE | |
ubuntu_flask latest 455512cb6879 2 hours ago 613 MB | |
ubuntu 16.04 2d696327ab2e 24 hours ago 121.6 MB | |
alpine_flask latest 09a1b6adae92 30 hours ago 101.5 MB |
This file contains hidden or 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 ubuntu:16.04 | |
MAINTAINER Aziz Kurbanov <[email protected]> | |
# up | |
RUN apt-get update | |
# Install bash | |
RUN apt-get install bash | |
# Install python | |
RUN apt-get install -y python | |
# Install UWSGI | |
RUN apt-get install -y uwsgi | |
# Install postgresql | |
RUN apt-get install -y postgresql | |
# Install pip | |
RUN apt-get install -y python-pip | |
# Install Flask | |
RUN pip install flask | |
# Install gunicorn | |
RUN pip install gunicorn | |
# Install git | |
RUN apt-get install -y git | |
# Clean up | |
# RUN rm -rf /var/cache/apk/* | |
RUN apt-get autoclean | |
CMD ["/bin/bash"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment