-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (26 loc) · 690 Bytes
/
Dockerfile
File metadata and controls
40 lines (26 loc) · 690 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
32
33
34
35
36
37
38
39
40
# Base image with Ruby and Node.js
FROM ruby:3.0.6-alpine
# Install necessary packages
RUN apk update && apk add build-base postgresql-dev
# Install Node.js
RUN apk add --update nodejs npm gcompat
RUN mkdir /app
WORKDIR /app
RUN gem install bundler
COPY Gemfile ./
RUN bundle install
COPY . .
CMD puma -C config/puma.rb
# Set working directory
# RUN mkdir /app
# WORKDIR /app
# COPY Gemfile .
# # Copy Gemfile and package.json to the container
# # Install dependencies
# RUN bundle install
# # Copy the rest of the application files to the container
# EXPOSE 3000
# COPY . .
# # Expose the port used by the Rails application
# # Start the Rails server
# CMD rails s -b 0.0.0.0