-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (16 loc) · 614 Bytes
/
Dockerfile
File metadata and controls
23 lines (16 loc) · 614 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM satantime/puppeteer-node:20-slim
ENV NODE_ENV=production
ENV NODE_NO_WARNINGS=1
# Metadata as defined in the OCI image spec annotations
LABEL org.opencontainers.image.authors="Marco Franke <mfranke87@icloud.com>" \
org.opencontainers.image.description="Adds text to images" \
org.opencontainers.image.source="https://github.com/Disane87/text2image-nodejs" \
org.opencontainers.image.title="Text2Image" \
org.opencontainers.image.version="1.0"
WORKDIR /text2image/
COPY package*.json .
RUN npm install
RUN npm install -g puppeteer
COPY dist/ .
EXPOSE 3000
CMD ["node", "main.js"]