-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathDockerfile
41 lines (28 loc) · 845 Bytes
/
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
FROM ruby:3.3.4
ENV DATABASE_URL=
ENV REDIS_URL=
RUN apt-get update
RUN apt-get -y upgrade
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - &&\
apt-get install -y nodejs
RUN npm install --global yarn@1.22
LABEL maintainer="gilcierweb@gmail.com"
WORKDIR /app
RUN bundle config build.nokogiri --use-system-libraries
COPY Gemfile Gemfile.lock ./
RUN bundle install
COPY package.json yarn.lock ./
RUN yarn install --check-files
COPY . ./
RUN yarn run build
# Executa a criação/atualização do Banco de Dados
ENV DEPLOY_DATABASE=false
# Executa os testes
ENV PERFORM_TESTS=false
# Inicia a aplicação
ENV START_APP=true
# Para Configuration Management
# Será o valor atribuído à variável RAILS_ENV
# Por padrão, assume o valor `development`
ENV CONFIG=development
ENTRYPOINT ["./entrypoints/app-entrypoint.sh"]