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
|
# syntax=docker/dockerfile:1
|
||||||
ARG USER
|
FROM bullseye
|
||||||
RUN mkdir /myapp
|
COPY script/build/debian/prebuild.sh houdini/script/build/debian/prebuild.sh
|
||||||
COPY script/build/debian/prebuild.sh myapp/script/build/debian/prebuild.sh
|
RUN houdini/script/build/debian/prebuild.sh
|
||||||
RUN myapp/script/build/debian/prebuild.sh
|
RUN /sbin/useradd --home-dir /houdini --create-home --shell /bin/bash houdini
|
||||||
COPY script/build/debian/node.sh myapp/script/build/debian/node.sh
|
USER houdini
|
||||||
RUN myapp/script/build/debian/node.sh
|
COPY script/build/debian/node.sh houdini/script/build/debian/node.sh
|
||||||
COPY script/build/debian/postgres.sh myapp/script/build/debian/postgres.sh
|
RUN houdini/script/build/debian/node.sh
|
||||||
RUN myapp/script/build/debian/postgres.sh
|
# COPY script/build/debian/postgres.sh houdini/script/build/debian/postgres.sh
|
||||||
COPY gems /myapp/gems/
|
# RUN houdini/script/build/debian/postgres.sh
|
||||||
WORKDIR /myapp
|
# COPY gems /houdini/gems/
|
||||||
COPY Gemfile /myapp/Gemfile
|
# WORKDIR /houdini
|
||||||
COPY Gemfile.lock /myapp/Gemfile.lock
|
# COPY Gemfile /houdini/Gemfile
|
||||||
RUN gem install bundler -v "~>1.0"
|
# COPY Gemfile.lock /houdini/Gemfile.lock
|
||||||
RUN bundle install
|
# RUN gem install bundler -v "~>1.0"
|
||||||
CMD rake -T
|
# RUN bundle install
|
||||||
|
# CMD rake -T
|
||||||
|
|
Loading…
Reference in a new issue