forked from vantage-sh/ec2instances.info
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (20 loc) · 772 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
FROM ubuntu:20.04
ARG AWS_ACCESS_KEY_ID
ARG AWS_SECRET_ACCESS_KEY
ARG AWS_SESSION_TOKEN
ARG DEBIAN_FRONTEND=noninteractive
LABEL org.opencontainers.image.authors="Sebastian Sasu <[email protected]>, Cristian Magherusan-Stanciu <[email protected]>, Brooke McKim <[email protected]>"
RUN apt-get update > /dev/null
RUN apt-get install -y python3 pip locales libxml2-dev libxslt-dev nodejs npm > /dev/null
RUN npm install --global sass
RUN python3 -m pip install -U pip setuptools
RUN locale-gen "en_US.UTF-8"
WORKDIR /opt/app
# install dependencies into a dedicated Docker layer, to speed up subsequent builds a bit
COPY requirements.txt .
RUN pip3 install -r requirements.txt
COPY . .
RUN invoke build
EXPOSE 8080
ENV HTTP_HOST=0.0.0.0
CMD ["invoke", "serve"]