Compare commits
3 Commits
d6b1ed1046
...
8c9f654f57
Author | SHA1 | Date | |
---|---|---|---|
8c9f654f57
|
|||
469931faca
|
|||
7883107bdf
|
@@ -5,7 +5,7 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
volumes:
|
volumes:
|
||||||
- ..:/workspace:cached
|
- ..:/workspace
|
||||||
command: sleep infinity
|
command: sleep infinity
|
||||||
memcached:
|
memcached:
|
||||||
image: memcached:latest
|
image: memcached:latest
|
||||||
|
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,3 +1,5 @@
|
|||||||
.bundle
|
.bundle
|
||||||
|
.cache
|
||||||
|
.local
|
||||||
.ruby-lsp
|
.ruby-lsp
|
||||||
/vendor
|
.ash_history
|
||||||
|
9
.vscode/settings.json
vendored
9
.vscode/settings.json
vendored
@@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"[ruby]": {
|
|
||||||
"editor.defaultFormatter": "Shopify.ruby-lsp"
|
|
||||||
},
|
|
||||||
"rubyLsp.formatter": "standard",
|
|
||||||
"rubyLsp.linters": [
|
|
||||||
"standard"
|
|
||||||
],
|
|
||||||
}
|
|
15
Dockerfile
15
Dockerfile
@@ -9,6 +9,8 @@ RUN <<EOT
|
|||||||
apk upgrade --no-cache
|
apk upgrade --no-cache
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
|
RUN mkdir -p /run/app
|
||||||
|
|
||||||
|
|
||||||
FROM base AS build
|
FROM base AS build
|
||||||
|
|
||||||
@@ -23,12 +25,25 @@ RUN <<EOT
|
|||||||
bundle install
|
bundle install
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
|
FROM build AS dev
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN <<EOT
|
||||||
|
bundle install
|
||||||
|
EOT
|
||||||
|
|
||||||
|
CMD [ "sleep", "infinity" ]
|
||||||
|
|
||||||
FROM base
|
FROM base
|
||||||
|
|
||||||
# RUN useradd ruby --home /app --shell /bin/sh
|
# RUN useradd ruby --home /app --shell /bin/sh
|
||||||
RUN adduser ruby -h /app -D
|
RUN adduser ruby -h /app -D
|
||||||
|
|
||||||
|
RUN mkdir -p /run/app
|
||||||
|
|
||||||
|
RUN chown ruby:ruby /run/app
|
||||||
|
|
||||||
USER ruby:ruby
|
USER ruby:ruby
|
||||||
|
|
||||||
COPY --from=build /usr/local/bundle /usr/local/bundle
|
COPY --from=build /usr/local/bundle /usr/local/bundle
|
||||||
|
@@ -148,4 +148,4 @@ DEPENDENCIES
|
|||||||
uuid7
|
uuid7
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
2.6.6
|
2.5.13
|
||||||
|
15
docker-compose.yml
Normal file
15
docker-compose.yml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
services:
|
||||||
|
web:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
target: dev
|
||||||
|
ports:
|
||||||
|
- "4567:4567"
|
||||||
|
volumes:
|
||||||
|
- .:/app
|
||||||
|
environment:
|
||||||
|
{}
|
||||||
|
# WEB_CONCURRENCY: 3
|
||||||
|
command:
|
||||||
|
- sleep
|
||||||
|
- infinity
|
Reference in New Issue
Block a user