optimize dockerfile

This commit is contained in:
Alex Turchyn
2023-08-12 12:33:07 +03:00
parent 6871a3f840
commit 3b745a650d
2 changed files with 10 additions and 1 deletions
+1
View File
@@ -1,5 +1,6 @@
/db/*.sqlite3 /db/*.sqlite3
**/node_modules
/node_modules /node_modules
/coverage /coverage
/doc /doc
+9 -1
View File
@@ -37,7 +37,15 @@ COPY ./Gemfile ./Gemfile.lock ./
RUN bundle update --bundler && bundle install && rm -rf ~/.bundle RUN bundle update --bundler && bundle install && rm -rf ~/.bundle
COPY . ./ COPY ./bin ./bin
COPY ./app ./app
COPY ./config ./config
COPY ./db ./db
COPY ./log ./log
COPY ./lib ./lib
COPY ./public ./public
COPY ./tmp ./tmp
COPY LICENSE README.md Rakefile config.ru ./
COPY --from=webpack /app/public/packs ./public/packs COPY --from=webpack /app/public/packs ./public/packs