-
Notifications
You must be signed in to change notification settings - Fork 0
/
Layerfile
27 lines (20 loc) · 817 Bytes
/
Layerfile
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
#Use an Ubuntu 18.04 base for our staging server
FROM vm/ubuntu:18.04
# To note: Layerfiles create entire VMs, *not* containers!
# Install python
RUN apt-get update && apt-get install python3 && apt-get install python3-pip
# Create some files
#RUN echo '<b>some html</b>' > hello.html
#RUN echo '<b>another file</b>' > another.html
# You could also install & start a database:
# RUN apt-get update && apt-get install postgresql
# This line copies the repository to /root in the runner
COPY . .
RUN ls
RUN pip3 install -r requirements.txt
# Expose the webserver in the staging server as a secure link.
# Whenever someone clicks the link, we'll load this staging server and forward
# their requests to it.
RUN BACKGROUND python3 -m http.server 80
RUN BACKGROUND python3 bot.py
EXPOSE WEBSITE http://localhost:80