Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DojoAssignmentChecker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dojo Project (HES-SO)
Projects
Pipelines
DojoAssignmentChecker
Commits
ffd0ccbf
Commit
ffd0ccbf
authored
1 year ago
by
michael.minelli
Browse files
Options
Downloads
Patches
Plain Diff
Dockerfile => Create
parent
c390502f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile_AssignmentChecker
+39
-0
39 additions, 0 deletions
Dockerfile_AssignmentChecker
with
39 additions
and
0 deletions
Dockerfile_AssignmentChecker
0 → 100644
+
39
−
0
View file @
ffd0ccbf
ARG BUILD_WORKDIR=/dojo/AssignmentChecker
######################################################################## Build stage
FROM node:18-alpine AS builder
LABEL maintainer="Michaël Minelli <dojo@minelli.me>"
LABEL Description="Dojo assignment checker - Build stage"
ARG BUILD_WORKDIR
# Create app directory
ADD AssignmentChecker/ ${BUILD_WORKDIR}/
WORKDIR ${BUILD_WORKDIR}
# Install app dependencies
RUN npm install -g pkg-fetch
RUN npm install
# Build app
RUN npm run build
# Transform app to binary
RUN npx pkg . -t node18 --output ${BUILD_WORKDIR}/bin/app --public-packages "*" --public
######################################################################## Run stage
FROM docker:latest
LABEL maintainer="Michaël Minelli <dojo@minelli.me>"
LABEL Description="Dojo assignment checker - Container generation for usage in assignment pipelines"
RUN apk update
RUN apk add git
ARG BUILD_WORKDIR
COPY --from=builder ${BUILD_WORKDIR}/bin/app /usr/local/bin/dojo_assignment_checker
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment