docker: begin rewrite of Dockerfile setup for current instructions
First step in rewriting the Dockerfile to match the current setup/installation/configuration instructions as found in README.md. First step it to comment out some of the later stuff, and begin setup of installing everything into /houdini (instead of /myapp) and doing everything under the houdini user.
This commit is contained in:
parent
41ac73b00c
commit
6d783df5f1
1 changed files with 17 additions and 17 deletions
|
@ -1,17 +1,17 @@
|
|||
FROM ruby:2.6.6-stretch
|
||||
ARG USER
|
||||
RUN mkdir /myapp
|
||||
COPY script/build/debian/prebuild.sh myapp/script/build/debian/prebuild.sh
|
||||
RUN myapp/script/build/debian/prebuild.sh
|
||||
COPY script/build/debian/node.sh myapp/script/build/debian/node.sh
|
||||
RUN myapp/script/build/debian/node.sh
|
||||
COPY script/build/debian/postgres.sh myapp/script/build/debian/postgres.sh
|
||||
RUN myapp/script/build/debian/postgres.sh
|
||||
COPY gems /myapp/gems/
|
||||
WORKDIR /myapp
|
||||
COPY Gemfile /myapp/Gemfile
|
||||
COPY Gemfile.lock /myapp/Gemfile.lock
|
||||
RUN gem install bundler -v "~>1.0"
|
||||
RUN bundle install
|
||||
CMD rake -T
|
||||
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM bullseye
|
||||
COPY script/build/debian/prebuild.sh houdini/script/build/debian/prebuild.sh
|
||||
RUN houdini/script/build/debian/prebuild.sh
|
||||
RUN /sbin/useradd --home-dir /houdini --create-home --shell /bin/bash houdini
|
||||
USER houdini
|
||||
COPY script/build/debian/node.sh houdini/script/build/debian/node.sh
|
||||
RUN houdini/script/build/debian/node.sh
|
||||
# COPY script/build/debian/postgres.sh houdini/script/build/debian/postgres.sh
|
||||
# RUN houdini/script/build/debian/postgres.sh
|
||||
# COPY gems /houdini/gems/
|
||||
# WORKDIR /houdini
|
||||
# COPY Gemfile /houdini/Gemfile
|
||||
# COPY Gemfile.lock /houdini/Gemfile.lock
|
||||
# RUN gem install bundler -v "~>1.0"
|
||||
# RUN bundle install
|
||||
# CMD rake -T
|
||||
|
|
Loading…
Reference in a new issue