Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Kriete committed Oct 13, 2021
1 parent ff5d4aa commit a04f0c6
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
.DS_Store
**/*~
71 changes: 71 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#########################################
#########################################
### Dockerfile to run some Some Build ###
#########################################
#########################################

# This is a copy of the GitHub Action runner
FROM myoung34/github-runner:latest

#########################################
# Variables #
#########################################
ARG orgname="githubschool"
ARG reponame="github-actions-training-fjk211"

#########################################
# Label the instance and set maintainer #
#########################################
LABEL com.github.actions.name="Some Image" \
com.github.actions.description="Its a build image" \
com.github.actions.icon="code" \
com.github.actions.color="red" \
maintainer="GitHub DevOps <[email protected]>" \
org.opencontainers.image.authors="GitHub DevOps <[email protected]>" \
org.opencontainers.image.url="https://github.com/${orgname}/${reponame}" \
org.opencontainers.image.source="https://github.com/${orgname}/${reponame}" \
org.opencontainers.image.documentation="https://github.com/${orgname}/${reponame}" \
org.opencontainers.image.vendor="GitHub" \
org.opencontainers.image.description="Its a build image"

########################################
# Copy dependencies files to container #
########################################
COPY dependencies/* /

# ################################
# # Installs python dependencies #
# ################################
# RUN pip3 install --no-cache-dir pipenv
# # Bug in hadolint thinks pipenv is pip
# # hadolint ignore=DL3042
# RUN pipenv install --clear --system

# ####################
# # Run NPM Installs #
# ####################
# RUN npm config set package-lock false \
# && npm config set loglevel error \
# && npm --no-cache install
# # Add node packages to path
# ENV PATH="/node_modules/.bin:${PATH}"

# ##############################
# # Installs ruby dependencies #
# ##############################
# RUN bundle install

######################
# Make the directory #
######################
RUN mkdir -p /action/lib

#############################
# Copy scripts to container #
#############################
COPY library /action/lib

######################
# Set the entrypoint #
######################
ENTRYPOINT ["/action/lib/entrypoint.sh"]

0 comments on commit a04f0c6

Please sign in to comment.