Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions services/backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@

FROM ruby:3.0.3

RUN apt-get update -yq \
&& apt-get upgrade -yq \
#ESSENTIALS
&& apt-get install -y -qq --no-install-recommends build-essential curl git-core vim passwd unzip cron gcc wget netcat \
# RAILS PACKAGES NEEDED
&& apt-get update \
&& apt-get install -y --no-install-recommends imagemagick postgresql-client \
&& apt-get install -y -qq --no-install-recommends build-essential curl git-core vim passwd unzip cron gcc wget netcat imagemagick postgresql-client wait-for-it \
# INSTALL NODE
&& curl -sL https://deb.nodesource.com/setup_16.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
Expand All @@ -17,7 +15,6 @@ RUN apt-get update -yq \
RUN apt-get clean -qy \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir /app
WORKDIR /app

# install specific version of bundler
Expand All @@ -38,4 +35,4 @@ RUN yarn build

EXPOSE 4000

CMD ["/bin/bash", "-c", "rm -rf tmp/pids/server.pid && (bundle check || bundle install) && bundle exec rails s -b 0.0.0.0 -p 4000"]
CMD ["/bin/bash", "-c", "bundle exec rails s -b 0.0.0.0 -p 4000"]