Skip to content

Commit d52c5e0

Browse files
author
naraesk
authored
Create Dockerfile.prod
1 parent afecc1d commit d52c5e0

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

evaluationserver/Dockerfile.prod

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM ruby:2.4.3
2+
RUN apt-get update \
3+
&& apt-get install -y --no-install-recommends \
4+
rails rake build-essential nodejs libmysqlclient-dev mysql-client\
5+
&& rm -rf /var/lib/apt/lists/*
6+
RUN mkdir -p /usr/src/app
7+
WORkDIR /usr/src/app/
8+
COPY . .
9+
RUN gem install bundler && bundle install --jobs 20 --retry 5 # might be better?
10+
RUN gem install bundler
11+
ENV RAILS_ENV production
12+
RUN bundle exec rake assets:precompile
13+
LABEL maintainer="[email protected]" \
14+
version="1.0"
15+
EXPOSE 8081
16+
#CMD ["bin", "docker_start"]

0 commit comments

Comments
 (0)