mirror of
https://github.com/internetee/registry.git
synced 2025-07-27 04:58:29 +02:00
Added dockerfile for production k8s
This commit is contained in:
parent
220b26f0ce
commit
f69c151e50
2 changed files with 48 additions and 2 deletions
46
.dockerignore
Normal file
46
.dockerignore
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
# Git
|
||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
.github
|
||||||
|
|
||||||
|
# Docker
|
||||||
|
.dockerignore
|
||||||
|
Dockerfile*
|
||||||
|
docker-compose*
|
||||||
|
|
||||||
|
# Rails specific
|
||||||
|
log/*
|
||||||
|
tmp/*
|
||||||
|
storage/*
|
||||||
|
.bundle
|
||||||
|
.byebug_history
|
||||||
|
.rspec
|
||||||
|
spec/
|
||||||
|
test/
|
||||||
|
coverage/
|
||||||
|
public/assets
|
||||||
|
public/packs
|
||||||
|
node_modules
|
||||||
|
yarn-error.log
|
||||||
|
|
||||||
|
# Environment files
|
||||||
|
.env*
|
||||||
|
config/master.key
|
||||||
|
config/credentials/*.key
|
||||||
|
|
||||||
|
# Documentation
|
||||||
|
README.md
|
||||||
|
CHANGELOG.md
|
||||||
|
LICENSE
|
||||||
|
docs/
|
||||||
|
|
||||||
|
# Editor files
|
||||||
|
.idea/
|
||||||
|
.vscode/
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
*~
|
||||||
|
|
||||||
|
# OS specific
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
|
@ -1,7 +1,6 @@
|
||||||
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
|
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
|
||||||
ARG RUBY_VERSION=3.0.3
|
ARG RUBY_VERSION=3.0.3
|
||||||
ARG TARGETPLATFORM=linux/amd64
|
FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim AS base
|
||||||
FROM --platform=${TARGETPLATFORM} registry.docker.com/library/ruby:$RUBY_VERSION-slim AS base
|
|
||||||
|
|
||||||
# Rails app lives here
|
# Rails app lives here
|
||||||
WORKDIR /opt/webapps/app
|
WORKDIR /opt/webapps/app
|
||||||
|
@ -77,6 +76,7 @@ RUN apt-get update -qq && \
|
||||||
zip \
|
zip \
|
||||||
unzip \
|
unzip \
|
||||||
libzip-dev \
|
libzip-dev \
|
||||||
|
nodejs \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue