Skip to content

Commit

Permalink
Wrote the 'Dockerfile' for generating the app.
Browse files Browse the repository at this point in the history
touch Dockerfile docker-compose.yml
docker-compose build

docker-library/ruby#354 (comment)
  • Loading branch information
watthajak2018 committed Feb 18, 2022
1 parent 1f5c6c0 commit b51a56b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: '3'

services:
generator:
build: .
container_name: generator
volumes:
- .:/rails-7-hotwire

0 comments on commit b51a56b

Please sign in to comment.