-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrote the 'Dockerfile' for generating the app.
touch Dockerfile docker-compose.yml docker-compose build docker-library/ruby#354 (comment)
- Loading branch information
1 parent
1f5c6c0
commit b51a56b
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |