-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
54 lines (36 loc) · 891 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
37
38
39
40
41
42
43
44
45
46
47
48
FROM ubuntu:14.04
################################
# Dockerfile For PWRTELEGRAM API
# @kamikazechaer
################################
################################
# BACKEND INSTALLATION
################################
# Run system update
RUN apt-get update
RUN apt-get install wget nano lsb-release apt-utils systemd-services -y
# Get file from repo
RUN wget -O install.sh https://raw.githubusercontent.com/pwrtelegram/pwrtelegram-backend/master/install.sh
# Switch to root
USER root
# Set permissions
RUN chmod +x install.sh
# Install
RUN bash -e install.sh docker
###############################
# RUN API
###############################
###############################
#
# Set any environmental variables
#
# Change dir if needed
#
# Expose port if needed
#
# Run any other post install command
#
################################
# Expose port
EXPOSE 80
EXPOSE 443