-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from grisu48/tiny
Make tiny containers
- Loading branch information
Showing
2 changed files
with
11 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
FROM golang:buster AS build-env | ||
ARG ARCH= | ||
|
||
FROM ${ARCH}golang:buster AS build-env | ||
WORKDIR /app | ||
ADD . /app | ||
RUN apt-get update && apt-get upgrade -y | ||
RUN cd /app && make requirements && make -B pastad | ||
#RUN apt-get update && apt-get upgrade -y | ||
RUN cd /app && make requirements && make pastad-static | ||
|
||
FROM debian:buster | ||
RUN apt-get update && apt-get upgrade -y | ||
RUN mkdir /app | ||
RUN mkdir /data | ||
FROM scratch | ||
#RUN mkdir /app | ||
#RUN mkdir /data | ||
WORKDIR /data | ||
COPY --from=build-env /app/pastad /app/pastad | ||
COPY --from=build-env /app/mime.types /app/mime.types | ||
ENTRYPOINT /app/pastad -m /app/mime.types -c /data/pastad.toml | ||
ENTRYPOINT ["/app/pastad", "-m", "/app/mime.types", "-c", "/data/pastad.toml"] | ||
VOLUME ["/data"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters