Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
report
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
ISC2
virtu
report
Commits
1c08ffe1
Verified
Commit
1c08ffe1
authored
11 months ago
by
iliya.saroukha
Browse files
Options
Downloads
Patches
Plain Diff
fix: ex 3 of lab8 done
parent
ef4dafd3
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#32469
passed
11 months ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
content/08_dockerfiles.md
+31
-0
31 additions, 0 deletions
content/08_dockerfiles.md
with
31 additions
and
0 deletions
content/08_dockerfiles.md
+
31
−
0
View file @
1c08ffe1
...
...
@@ -246,3 +246,34 @@ ENTRYPOINT ["./alienwave"]
REPOSITORY TAG IMAGE ID CREATED SIZE
alienware 1.0 f4ee2cb8bbb4 46 seconds ago 340MB
```
### Partie 2
-
Quel est le nom de la dernière image
`alpine`
?
-
`alpine:3.20`
#### Dockerfile
```
bash
FROM ubuntu:22.04 as BUILDER
RUN apt update
-y
&&
apt
install
libncurses-dev wget
-y
RUN apt
install
-y
build-essential
RUN wget https://www.alessandropira.org/alienwave/alienwave-0.4.0.tar.gz
RUN
tar
-xzf
alienwave-0.4.0.tar.gz
RUN
cd
alienwave/
&&
sed
-i
's/LIB = -lncurses/LIB = -lncurses -ltinfo -static/g'
Makefile
&&
make
FROM alpine:3.20
RUN apk update
&&
apk add ncurses
COPY
--from
=
builder /alienwave/alienwave /usr/bin
ENTRYPOINT
[
"/usr/bin/alienwave"
]
```
-
On a réussi à atteindre une taille de 12MB.
```
bash
REPOSITORY TAG IMAGE ID CREATED SIZE
alienware_multistage 1.0 1c7f0a242c2c 4 minutes ago 12MB
```
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