Initial commit: try make binaries
This commit is contained in:
29
Dockerfile
Normal file
29
Dockerfile
Normal file
@@ -0,0 +1,29 @@
|
||||
FROM ubuntu:jammy AS deps
|
||||
|
||||
RUN apt-get update && apt-get install -y software-properties-common
|
||||
RUN add-apt-repository ppa:tkchia/build-ia16
|
||||
RUN apt-get update && apt-get install -y gcc-ia16-elf
|
||||
RUN apt-get install nasm make
|
||||
|
||||
|
||||
FROM deps AS dev
|
||||
|
||||
WORKDIR /workspace
|
||||
RUN adduser --home /workspace paul
|
||||
USER 1000:1000
|
||||
|
||||
|
||||
FROM deps AS build
|
||||
|
||||
ARG TARGET
|
||||
|
||||
ADD . /workspace
|
||||
WORKDIR /workspace
|
||||
RUN make ${TARGET}
|
||||
|
||||
|
||||
FROM scratch AS export
|
||||
|
||||
ARG TARGET
|
||||
|
||||
COPY --from=build /workspace/${TARGET} /
|
Reference in New Issue
Block a user