Skip to content

Commit e1d74c5

Browse files
committed
Update Dockerfile.
1 parent 7a27847 commit e1d74c5

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/log/*.log
22
/tmp/*.pid
3+
/tmp/*.sock
34
/tmp/restart.txt
45
/.env
56
/.dockerenv

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# docker build -t stefansundin/rssbox .
22
# docker push stefansundin/rssbox
3-
# docker run -d -P stefansundin/rssbox
3+
# docker run -i -t -p 8080:8080 stefansundin/rssbox
44
# docker run -i -t stefansundin/rssbox bin/cons
55

6-
# docker run -d --name=rssbox-redis redis redis-server --appendonly yes
7-
# docker run -d --name=rssbox --env-file=.dockerenv --link=rssbox-redis:redis -P stefansundin/rssbox
6+
# docker run --name=rssbox-redis redis redis-server --appendonly yes
7+
# docker run --name=rssbox --env-file=.dockerenv --link=rssbox-redis:redis -i -t -p 8080:8080 stefansundin/rssbox
88

9-
FROM stefansundin/rbenv:2.4.0
9+
FROM stefansundin/rbenv:2.5.0
1010
MAINTAINER stefansundin https://github.com/stefansundin/rssbox
1111

1212
ADD Gemfile /app/Gemfile
@@ -17,5 +17,5 @@ RUN bundle install --without development:test --path=.bundle/gems
1717
COPY . /app
1818

1919
EXPOSE 8080
20-
21-
CMD ["bin/server", "8080"]
20+
ENV PORT=8080
21+
ENTRYPOINT ["bin/server"]

0 commit comments

Comments
 (0)