Files
standardnotes-app-web/Dockerfile
2021-10-22 15:07:46 -05:00

33 lines
496 B
Docker

FROM ruby:2.7.1-alpine3.12
RUN apk add --update --no-cache \
alpine-sdk \
nodejs-current \
python2 \
git \
nodejs-npm \
yarn \
tzdata
WORKDIR /app/
COPY package.json yarn.lock Gemfile Gemfile.lock /app/
COPY vendor /app/vendor
RUN yarn install --pure-lockfile --ignore-engines
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" ]