Files
standardnotes-app-web/Dockerfile
2022-03-15 19:13:08 +05:30

30 lines
437 B
Docker

FROM ruby:2.7.4-alpine3.14
RUN apk add --update --no-cache \
alpine-sdk \
nodejs-current \
python3 \
git \
yarn \
tzdata
WORKDIR /app/
COPY package.json yarn.lock Gemfile Gemfile.lock /app/
RUN yarn install --pure-lockfile
RUN gem install bundler && bundle install
COPY . /app/
RUN yarn bundle
RUN bundle exec rails assets:precompile
EXPOSE 3000
ENTRYPOINT [ "./docker/entrypoint.sh" ]
CMD [ "start" ]