first docker compose

This commit is contained in:
hugogogo
2022-08-27 23:01:01 +02:00
parent 90680662fc
commit 9dedc02052
8 changed files with 53 additions and 33 deletions

View File

@@ -1,10 +0,0 @@
# build this image from parent image alpine:3.16.1
# available there : https://hub.docker.com/_/alpine
FROM alpine:3.16.1
WORKDIR /mariadb
#ENV PORT 80

View File

View File

@@ -0,0 +1,14 @@
# find official images : https://hub.docker.com/search
#FROM ubuntu:18.04
#FROM alpine:3.16.1
#FROM debian:buster
# basic test
# build with : sudo docker build --tag test .
# run with : sudo docker run test
# 'hello' in assembly found here : http://timelessname.com/elfbin/
FROM scratch
COPY tools/hello /
CMD [ "/hello" ]

Binary file not shown.

View File

@@ -0,0 +1,16 @@
SECTION .data
msg: db "Hi World",10
len: equ $-msg
SECTION .text
global main
main:
mov edx,len
mov ecx,msg
mov ebx,1
mov eax,4
int 0x80
mov ebx,0
mov eax,1
int 0x80