36 lines
1.9 KiB
Docker
36 lines
1.9 KiB
Docker
# 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
|
|
# Use NodeSource for installation of Node 14.x
|
|
COPY --chown=root:root docker/data/nodesource.list /etc/apt/sources.list.d/nodesource.list
|
|
COPY --chown=root:root docker/data/nodesource.gpg.key /usr/share/keyrings/nodesource.gpg.key
|
|
RUN gpg --dearmor < /usr/share/keyrings/nodesource.gpg.key > /usr/share/keyrings/nodesource.gpg
|
|
RUN rm -f /usr/share/keyrings/nodesource.gpg.key
|
|
RUN chown root.root /usr/share/keyrings/nodesource.gpg
|
|
RUN chmod 644 /usr/share/keyrings/nodesource.gpg
|
|
# Use yarnkpkg for installation of Yarn
|
|
COPY --chown=root:root docker/data/yarn.list /etc/apt/sources.list.d/yarn.list
|
|
RUN chmod 644 /etc/apt/sources.list.d/yarn.list
|
|
COPY --chown=root:root docker/data/yarnpkg.gpg.key /usr/share/keyrings/yarnpkg.gpg.key
|
|
RUN gpg --dearmor < /usr/share/keyrings/yarnpkg.gpg.key > /usr/share/keyrings/yarnpkg.gpg
|
|
RUN rm -f /usr/share/keyrings/yarnpkg.gpg.key
|
|
RUN chown root.root /usr/share/keyrings/yarnpkg.gpg
|
|
RUN chmod 644 /usr/share/keyrings/yarnpkg.gpg
|
|
# Run script to put keys in place and install
|
|
COPY --chown=root:root script/build/debian/node.sh houdini/script/build/debian/node.sh
|
|
RUN houdini/script/build/debian/node.sh
|
|
# Switch to houdini user, rest of file run in as that user after created
|
|
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
|