-
Notifications
You must be signed in to change notification settings - Fork 1
/
web.Dockerfile
51 lines (36 loc) · 1.2 KB
/
web.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
49
50
51
#
# BudgetTracker Dockerfile for UI
#
FROM ubuntu:latest
USER root
RUN apt-get update
RUN apt-get install -y nginx nodejs
# Remove the default Nginx configuration file
RUN rm -v /etc/nginx/nginx.conf
# Copy a configuration file from the current directory
ADD nginx/nginx.conf /etc/nginx/
ADD nginx/mime.types /etc/nginx/
ADD /Simulator-Frontend/Unordered /usr/share/nginx/html/
ADD /Simulator-Frontend/Unordered /var/www/html/
# Append "daemon off;" to the beginning of the configuration
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
# Expose ports
#EXPOSE 90
# Set the default command to execute
# when creating a new container
CMD service nginx start
# FROM nginx
# #COPY /Simulator-Frontend /usr/share/nginx/html
# # Remove the default Nginx configuration file
# RUN rm -v /etc/nginx/nginx.conf
# # Copy a configuration file from the current directory
# ADD nginx.conf /etc/nginx/
# ADD /Simulator-Frontend /usr/share/nginx/html/
# ADD /Simulator-Frontend /var/www/html/
# # Append "daemon off;" to the beginning of the configuration
# RUN echo "daemon off;" >> /etc/nginx/nginx.conf
# # Expose ports
# #EXPOSE 90
# # Set the default command to execute
# # when creating a new container
# CMD service nginx start