Dateien nach "/" hochladen
This commit is contained in:
commit
3b748689ba
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# use alpine as base image
|
||||||
|
FROM alpine AS build-env
|
||||||
|
# install build-base meta package inside build-env container
|
||||||
|
RUN sed -i 's/https/http/g' /etc/apk/repositories
|
||||||
|
RUN apk add --no-cache build-base
|
||||||
|
# change directory to /app
|
||||||
|
WORKDIR /app
|
||||||
|
# copy all files from current directory inside the build-env container
|
||||||
|
COPY . .
|
||||||
|
# Compile the source code and generate hello binary executable file
|
||||||
|
RUN gcc -o hello helloDocker.c
|
||||||
|
# run the program
|
||||||
|
CMD ["/app/hello"]
|
Loading…
x
Reference in New Issue
Block a user