Skip to content
Snippets Groups Projects
Verified Commit 68b0a0c5 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
FROM node:alpine AS builder
RUN apk add --no-cache git python build-base
RUN git clone https://github.com/Flood-UI/flood/ /flood-ui
WORKDIR /flood-ui
RUN npm install
RUN cp config.docker.js config.js
RUN npm run build
RUN npm prune --production
FROM node:alpine
RUN apk --no-cache add mediainfo
COPY --from=builder /flood-ui /flood-ui
EXPOSE 3000
VOLUME ["/data"]
ENTRYPOINT ["npm", "start"]
Makefile 0 → 100644
IMAGE := k8r.eu/justjanne/$(shell basename $(shell git remote get-url origin) .git)
TAGS := $(shell git describe --always --tags HEAD)
.PHONY: build
build:
docker build --pull -t $(IMAGE):$(TAGS) .
docker tag $(IMAGE):$(TAGS) $(IMAGE):latest
@echo Successfully tagged $(IMAGE):$(TAGS) as latest
.PHONY: push
push: build
docker push $(IMAGE):$(TAGS)
docker push $(IMAGE):latest
@echo Successfully pushed $(IMAGE):$(TAGS) as latest
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment