-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
35 lines (25 loc) · 924 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM node:18.4.0-buster as builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
FROM node:18.4.0-buster-slim
LABEL org.opencontainers.image.authors="DDBJ(DNA Data Bank of Japan) <[email protected]>"
LABEL org.opencontainers.image.url="https://github.com/sapporo-wes/sapporo-web"
LABEL org.opencontainers.image.source="https://github.com/sapporo-wes/sapporo-web/blob/main/Dockerfile"
LABEL org.opencontainers.image.version="1.2.2"
LABEL org.opencontainers.image.description="A web application for managing and executing WES services."
LABEL org.opencontainers.image.licenses="Apache2.0"
RUN apt update && \
apt install -y --no-install-recommends \
tini && \
apt clean && \
rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/node_modules /app/node_modules
WORKDIR /app
COPY . .
RUN npm run generate
ENV NUXT_HOST 0.0.0.0
ENV NUXT_PORT 1121
EXPOSE 1121
ENTRYPOINT ["tini", "--"]
CMD ["npm", "run", "start"]