-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (32 loc) · 894 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM ubuntu:18.04
MAINTAINER hbeadles
ARG BASE_DIR=/var/www
ARG WEBSITE_NAME=MoviesLibrary
ENV WEBSITE_NAME=${WEBSITE_NAME}
# Add apache2, mod_wsgi, python3.6 libraries
RUN apt-get update && apt-get install -y apache2 \
libapache2-mod-wsgi-py3 \
build-essential \
libssl-dev \
libffi-dev \
python3.6-dev \
python3.6 \
python3.6-venv \
python3-pip \
vim \
libssl-dev \
sudo \
&& apt-get clean \
&& apt-get autoremove \
&& rm -rf /var/lib/apt/lists/*
RUN sudo apt-get update
RUN sudo apt-get upgrade -y
RUN apt-get install python3-dev
RUN apt-get install -y gcc
RUN apt-get install -y default-libmysqlclient-dev
# Expose port 80 on the container
EXPOSE 80
# Make directory for base_site
RUN mkdir ${BASE_DIR}/${WEBSITE_NAME}
RUN chown -R www-data:www-data ${BASE_DIR}/${WEBSITE_NAME}
ENTRYPOINT ["/bin/bash", "/var/www/startup.sh"]