Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Secure solution for nexus infrastructure
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
flg_masters
TM
Secure solution for nexus infrastructure
Commits
2c9041f6
Commit
2c9041f6
authored
2 months ago
by
ping
Browse files
Options
Downloads
Patches
Plain Diff
Update Dockefile to reduce build time
parent
7cf1d613
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
live_exam_os/Dockerfile
+6
-2
6 additions, 2 deletions
live_exam_os/Dockerfile
with
6 additions
and
2 deletions
live_exam_os/Dockerfile
+
6
−
2
View file @
2c9041f6
...
...
@@ -4,7 +4,7 @@ FROM ubuntu:22.04
ENV
archive=go1.22.6.linux-amd64.tar.gz
ENV
PATH=$PATH:/usr/local/go/bin
RUN
apt-get update
&&
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-y
gcc pkg-config git wget make ca-certificates libglfw3-dev libxcursor-dev libxinerama-dev libxi-dev libxxf86vm-dev upx-ucl curl cryptsetup squashfs-tools fakechroot debootstrap xorriso mtools dosfstools
RUN
apt-get update
&&
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-y
gcc pkg-config git wget make ca-certificates libglfw3-dev libxcursor-dev libxinerama-dev libxi-dev libxxf86vm-dev upx-ucl curl cryptsetup squashfs-tools fakechroot debootstrap xorriso mtools dosfstools
gnutls-bin
RUN
git clone https://github.com/limine-bootloader/limine.git
--branch
=
v8.x-binary
--depth
=
1 /opt/limine
&&
\
cd
/opt/limine
&&
\
...
...
@@ -15,8 +15,12 @@ RUN git config --global --add safe.directory /data
RUN
wget https://go.dev/dl/
$archive
&&
tar
-C
/usr/local
-xzf
$archive
# This part is used to compile the dependencies so that you don't have to do it every time you run the build.sh script (it saves around 2.5 minutes).
WORKDIR
/nexus
COPY
src src
COPY
Makefile .
COPY
config config
RUN
cd
src/client
&&
go mod download
RUN
cd
config/certs
&&
./gen-cert.sh ca.info nexus-server.info /nexus/certs
RUN
make build_nexus-exam
SERVER
=
'127.0.0.1:1077'
CERT
=
'certs/ca-cert.pem'
EXAM_USER
=
'user'
EXAM_PWD
=
'pwd'
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