Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ISRIC
wsm.rest
Commits
b232ef17
Commit
b232ef17
authored
Dec 06, 2017
by
Luís de Sousa
Browse files
Trim down Dockerfile to minimal commands.
parent
ccdd53e5
Changes
1
Show whitespace changes
Inline
Side-by-side
Dockerfile
View file @
b232ef17
FROM
ubuntu:16.04
MAINTAINER
Luís de Sousa <luis.desousa@wur.nl>
# Not sure yet what this does
ENV
DEBIAN_FRONTEND noninteractive
RUN
apt update
RUN
apt
-y
install
python-pip python-dev nginx
COPY
./requirements.txt /tmp/requirements.txt
RUN
pip
install
-r
/tmp/requirements.txt
# Is this needed?
#RUN mkdir -p /var/www/wsm.app
# Expose port 80
EXPOSE
80
# Build it
# docker build -t ldesousa/wsm.rest .
# Run command
# docker run -dit -v /home/duque004/git/wsm.rest:/var/www/wsm.rest --name wsm.rest -p 8081:80 ldesousa/wsm.rest
COPY
configs/wsm.rest.nginx /etc/nginx/sites-enabled/wsm.rest
COPY
configs/wsm.rest.service /etc/systemd/system/wsm.rest.service
# Attach to the container and run the startup script
# docker attach wsm.rest
# sh /var/www/wsm.rest/configs/startup.sh
# Ctrl+P Ctrl+Q
# Apparently, these must be run
RUN
/bin/systemctl start myproject
RUN
/bin/systemctl
enable
myproject
RUN
/bin/systemctl restart nginx
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment