-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (19 loc) · 697 Bytes
/
Dockerfile
File metadata and controls
26 lines (19 loc) · 697 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
FROM node:lts-alpine AS build
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# Deployment step
FROM busybox:1.37 as deploy
RUN adduser -D static
USER static
WORKDIR /home/static
COPY --from=build /usr/src/app/build/ ./
LABEL org.opencontainers.image.version="latest" \
org.opencontainers.image.title="docs-tf2pickup-org" \
org.opencontainers.image.base.name="ghcr.io/tf2pickup-org/docs.tf2pickup.org:latest" \
org.opencontainers.image.description="tf2pickup.org documentation" \
org.opencontainers.image.source="https://github.com/tf2pickup-org/docs.tf2pickup.org"
EXPOSE 3100
CMD ["busybox", "httpd", "-f", "-v", "-p", "3100"]