Skip to content
Snippets Groups Projects
Commit 30f496c5 authored by meskio's avatar meskio :tent:
Browse files

Add dockerfile

parent 54dca2a8
No related branches found
No related tags found
No related merge requests found
/.git
/node_modules
/.pnp
.pnp.js
/build
/cicer
/test.db
FROM golang as go_build
WORKDIR /src/
COPY main.go go.* /src/
COPY api /src/api
RUN CGO_ENABLED=1 go build -o cicer
FROM node as js_build
WORKDIR /src/
COPY *.json /src/
COPY src /src/src
COPY public /src/public
RUN npm install && npm run build
FROM debian
ENV ASSETS_PATH="/assets"
ENV DB_PATH="/data/cicer.db"
COPY --from=go_build /src/cicer /cicer
COPY --from=js_build /src/build /assets
VOLUME /data
ENTRYPOINT ["/cicer"]
cicer:
container_name: cicer
hostname: cicer
image: cicer
restart: always
user: 112:65534
ports:
- "0.0.0.0:8080:8080"
volumes:
- /opt/cicer:/data
environment:
- SIGNKEY=<some-random-key>
- MAIL_SERVER=
- MAIL_ADDR=
- MAIL_PASS=
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment