mirror of
https://github.com/Cian-H/I-Form_Server_Node_Deployer.git
synced 2025-12-30 18:12:01 +00:00
restructured project to have /src folder
This commit is contained in:
17
src/docker/fuel-ignition.dockerfile
Normal file
17
src/docker/fuel-ignition.dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM registry.suse.com/bci/nodejs
|
||||
ARG CONTAINER_USERID
|
||||
|
||||
# Install requirements, create usergroup and add user
|
||||
RUN zypper -n install --no-recommends mkisofs python3 make gcc gcc-c++
|
||||
RUN groupadd fuelignition
|
||||
RUN useradd -m -d /fuelignition fuelignition -u ${CONTAINER_USERID}
|
||||
|
||||
COPY --chown=fuelignition . /fuelignition/
|
||||
|
||||
USER fuelignition
|
||||
WORKDIR /fuelignition
|
||||
|
||||
RUN npm install
|
||||
|
||||
# Run our command
|
||||
CMD ["npm", "run", "dev"]
|
||||
12
src/docker/validate.dockerfile
Normal file
12
src/docker/validate.dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM quay.io/coreos/ignition-validate:release AS ignition-validate
|
||||
FROM alpine:latest as base
|
||||
|
||||
ARG CWD_MOUNTDIR
|
||||
ENV CWD_MOUNTDIR=$CWD_MOUNTDIR
|
||||
|
||||
COPY --from=ignition-validate . .
|
||||
COPY scripts/installs.sh /installs.sh
|
||||
|
||||
RUN /installs.sh
|
||||
|
||||
CMD $CWD_MOUNTDIR/scripts/validate.sh
|
||||
Reference in New Issue
Block a user