Skip to content

Commit a8e6552

Browse files
committed
fix: update Dockerfile and package.json for proper application structure
1 parent f9c3361 commit a8e6552

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
FROM alpine:latest
1+
FROM node:alpine
22

33
ARG GH_REPO
44
ARG RELEASE_NOTES
55

6-
LABEL org.opencontainers.image.source $GH_REPO
6+
COPY dist /app/dist
7+
COPY package.json /app/package.json
8+
COPY README.md /app/README.md
9+
COPY CHANGELOG.md /app/CHANGELOG.md
710

8-
CMD ["echo", "Hello World!"]
11+
WORKDIR /app
12+
CMD ["node", "dist/index.js"]

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
"version": "1.7.0",
55
"author": "Tomer Horowitz",
66
"type": "module",
7+
"exports": "./dist/index.js",
8+
"main": "./dist/index.js",
9+
"files": [
10+
"dist"
11+
],
712
"engines": {
813
"node": ">=22"
914
},

0 commit comments

Comments
 (0)