-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.Dockerfile
More file actions
31 lines (21 loc) · 812 Bytes
/
dev.Dockerfile
File metadata and controls
31 lines (21 loc) · 812 Bytes
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
# This file is for building the local dev image
FROM ruby:4.0
# This is for installing nodejs
RUN apt-get update && apt-get install -y ca-certificates curl gnupg
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_24.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update && apt-get install nodejs -y && rm -rf /var/lib/apt/lists/*
WORKDIR /node
COPY package* /node
RUN npm install
WORKDIR /site
COPY Gemfile* /site
RUN gem update --system && gem cleanup
RUN bundle install
ENV TZ=Europe/Stockholm
# Main app
EXPOSE 4000
# Livereload
EXPOSE 35729
VOLUME /site
ENTRYPOINT [ "sh", "/site/_script/entrypoint.sh" ]