-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdockerfile
70 lines (59 loc) · 1.27 KB
/
dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
FROM ruby:3.3.4-alpine
LABEL maintainer="gilcierweb@gmail.com"
ENV RAILS_ENV development
ENV RAILS_SERVE_STATIC_FILES true
ENV RAILS_LOG_TO_STDOUT true
ENV APP_HOME /app
ENV BUNDLE_APP_CONFIG="$APP_HOME/.bundle"
ENV NODE_VERSION 16
RUN apk add --update \
binutils-gold \
bash \
build-base \
busybox \
ca-certificates \
curl \
file \
g++ \
gcc \
git \
graphicsmagick \
less \
libstdc++ \
libffi-dev \
libc-dev \
linux-headers \
libxml2-dev \
libxslt-dev \
libgcrypt-dev \
libffi-dev \
libsodium-dev \
make \
netcat-openbsd \
nodejs \
openssl \
pkgconfig \
postgresql-dev \
tzdata \
openssh-client \
rsync \
yaml-dev \
sqlite-dev \
ruby-dev \
zlib-dev \
yarn
RUN ruby -v && node -v && yarn -v
RUN echo 'gem: --no-ri --no-rdoc' > ~/.gemrc
RUN mkdir -p $APP_HOME
WORKDIR $APP_HOME
COPY Gemfile Gemfile.lock ./
COPY package.json yarn.lock ./
RUN gem install bundler -v 2.3.12
RUN bundle check || bundle install
RUN yarn install --check-files
# Copia nosso código para dentro do container
COPY . $APP_HOME
RUN rm -f tmp/pids/server.pid
EXPOSE 3000
# Roda nosso servidor
#CMD ["bin/dev"]