-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (23 loc) · 921 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
FROM node:20.18.0-alpine3.19
LABEL org.opencontainers.image.authors="EDM115 <[email protected]>, EuphoriaReal <[email protected]>, yamakajump <[email protected]>"
LABEL org.opencontainers.image.base.name="node:20.14.0-alpine3.19"
LABEL org.opencontainers.image.licenses="MIT"
LABEL org.opencontainers.image.source="https://github.com/EDM115-org/Senescalade.git"
LABEL org.opencontainers.image.title="Senescalade"
LABEL org.opencontainers.image.url="https://github.com/EDM115-org/Senescalade.git"
ARG PORT=56860
ENV PORT=${PORT}
ENV NODE_ENV=development
WORKDIR /app/
COPY . /app/
RUN apk update && \
apk upgrade --no-cache && \
apk add --no-cache bash>=5.2.21-r0 git>=2.43.0-r0 mysql-client>=10.11.6-r0 && \
npm i -g rimraf && \
rimraf .env && \
cp .prod.env .env && \
npm ci --no-audit --no-fund && \
npm run build
EXPOSE ${PORT}
ENV NODE_ENV=production
CMD ["/bin/bash", "start.sh"]