-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.prod-armv7
19 lines (19 loc) · 1.18 KB
/
Dockerfile.prod-armv7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM arm32v7/ruby:2.5-slim
LABEL org.opencontainers.image.authors="Alessio Caradossi <[email protected]>"
RUN mkdir /bilancio
WORKDIR /bilancio
RUN apt-get update && apt-get upgrade -y && apt-get install -y -qq curl gnupg xz-utils --fix-missing --no-install-recommends
RUN curl -sS https://nodejs.org/dist/v14.18.0/node-v14.18.0-linux-armv7l.tar.xz | tar -Jx && mkdir /usr/local/ -p && mv node-v14.18.0-linux-armv7l/bin/node /usr/local/ && rm -rf node-v14.18.0-linux-armv7l/
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install -qq -y python2 build-essential nodejs yarn git default-libmysqlclient-dev --fix-missing --no-install-recommends
COPY . /bilancio
#RUN bundle install --without development test
RUN bundle update
RUN rm yarn.lock
RUN node --version
RUN yarn config set network-timeout 300000
RUN yarn install
RUN rails webpacker:compile
# Remove folders not needed in resulting image
# RUN rm -rf node_modules tmp/cache app/assets vendor/assets test
RUN apt-get remove -y -qq curl gnupg xz-utils build-essential yarn git && apt-get -y -qq autoremove