-
-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (26 loc) · 758 Bytes
/
Dockerfile
File metadata and controls
35 lines (26 loc) · 758 Bytes
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.20.4-alpine3.20 AS build-stage
RUN apk add git
RUN set -eux \
&& mkdir -p /app \
&& mkdir -p /api
COPY frontend/ /app
COPY entrypoint.sh /api/entrypoint.sh
WORKDIR /app
RUN rm -r src/components/Stacks-Editor
RUN git clone https://github.com/BaldissaraMatheus/Stacks-Editor src/components/Stacks-Editor
RUN cd src/components/Stacks-Editor && npm ci --no-audit
RUN set -eux && npm ci --no-audit --omit=dev
COPY backend/ /api/
WORKDIR /api
RUN set -eux && npm ci --no-audit
FROM alpine:3.20 AS final
USER root
RUN set -eux && apk add --no-cache nodejs npm
RUN mkdir /stylesheets
COPY --from=build-stage /app /app
COPY --from=build-stage /api/ /api/
VOLUME /tasks
VOLUME /config
WORKDIR /api
EXPOSE 8080
ENTRYPOINT sh entrypoint.sh