Add container runtime
This commit is contained in:
parent
a27b0a8b37
commit
599970ed72
17
Containerfile
Normal file
17
Containerfile
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
FROM docker.io/library/ruby:3.3
|
||||||
|
|
||||||
|
ARG SMASHING_VERSION
|
||||||
|
|
||||||
|
RUN gem install smashing -v ${SMASHING_VERSION}
|
||||||
|
RUN apt update --yes
|
||||||
|
RUN apt install nodejs --yes
|
||||||
|
RUN apt clean all
|
||||||
|
RUN mkdir --parents /smashing
|
||||||
|
|
||||||
|
ENV SMASHING_PROJECT_DIR=/smashing
|
||||||
|
|
||||||
|
ADD container-entrypoint.sh /container-entrypoint.sh
|
||||||
|
|
||||||
|
ENTRYPOINT ["/container-entrypoint.sh"]
|
||||||
|
|
||||||
|
CMD ["start"]
|
9
container-entrypoint.sh
Executable file
9
container-entrypoint.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cd "${SMASHING_PROJECT_DIR}"
|
||||||
|
|
||||||
|
bundle install
|
||||||
|
|
||||||
|
smashing "$@"
|
Loading…
Reference in New Issue
Block a user