ToolJet/docker/server.Dockerfile
Ashish 6346e78820
Chore: fix server dockerfile (#307)
* fix typo in entrypoint script invocation from the server dockerfile

* use sh in the entrypoint shebang instead of bash

* make entrypoint script executable
2021-06-24 16:40:26 +05:30

18 lines
390 B
Docker

FROM ruby:2.7.3-buster
RUN apt update && apt install -y \
build-essential \
postgresql \
freetds-dev
RUN mkdir -p /app
WORKDIR /app
COPY Gemfile Gemfile.lock ./
RUN gem install bundler && RAILS_ENV=production bundle install --jobs 20 --retry 5
ENV RAILS_ENV=production
COPY . ./
RUN ["chmod", "755", "docker/entrypoints/server.sh"]
ENTRYPOINT ["./docker/entrypoints/server.sh"]