diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5f36a3a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +# Load the Docker image. +FROM ruby:3.0.3-alpine3.13 + +# Define environment variables. +ENV LANG C.UTF-8 +ENV PS1 '▶ ' + +# Install Packages. +RUN apk update && apk upgrade && apk add --update --no-cache \ + build-base \ + postgresql-dev \ + tzdata \ + nodejs \ + git \ + libc6-compat + +# Install Rails. +RUN gem install rails + +# Set up a work directory. +WORKDIR /rails-7-hotwire diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..6f82d79 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +version: '3' + +services: + generator: + build: . + container_name: generator + volumes: + - .:/rails-7-hotwire