Compare commits
6 Commits
8c9f654f57
...
d6b1ed1046
Author | SHA1 | Date | |
---|---|---|---|
d6b1ed1046
|
|||
768a58849d
|
|||
54bc100d2a
|
|||
c2b00f2c3e
|
|||
a580e78d81
|
|||
8acc46c08d
|
@@ -5,7 +5,7 @@ services:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- ..:/workspace
|
||||
- ..:/workspace:cached
|
||||
command: sleep infinity
|
||||
memcached:
|
||||
image: memcached:latest
|
||||
|
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,5 +1,3 @@
|
||||
.bundle
|
||||
.cache
|
||||
.local
|
||||
.ruby-lsp
|
||||
.ash_history
|
||||
/vendor
|
||||
|
9
.vscode/settings.json
vendored
Normal file
9
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"[ruby]": {
|
||||
"editor.defaultFormatter": "Shopify.ruby-lsp"
|
||||
},
|
||||
"rubyLsp.formatter": "standard",
|
||||
"rubyLsp.linters": [
|
||||
"standard"
|
||||
],
|
||||
}
|
15
Dockerfile
15
Dockerfile
@@ -9,8 +9,6 @@ RUN <<EOT
|
||||
apk upgrade --no-cache
|
||||
EOT
|
||||
|
||||
RUN mkdir -p /run/app
|
||||
|
||||
|
||||
FROM base AS build
|
||||
|
||||
@@ -25,25 +23,12 @@ RUN <<EOT
|
||||
bundle install
|
||||
EOT
|
||||
|
||||
FROM build AS dev
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN <<EOT
|
||||
bundle install
|
||||
EOT
|
||||
|
||||
CMD [ "sleep", "infinity" ]
|
||||
|
||||
FROM base
|
||||
|
||||
# RUN useradd ruby --home /app --shell /bin/sh
|
||||
RUN adduser ruby -h /app -D
|
||||
|
||||
RUN mkdir -p /run/app
|
||||
|
||||
RUN chown ruby:ruby /run/app
|
||||
|
||||
USER ruby:ruby
|
||||
|
||||
COPY --from=build /usr/local/bundle /usr/local/bundle
|
||||
|
@@ -148,4 +148,4 @@ DEPENDENCIES
|
||||
uuid7
|
||||
|
||||
BUNDLED WITH
|
||||
2.5.13
|
||||
2.6.6
|
||||
|
@@ -1,15 +0,0 @@
|
||||
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