mirror of
https://github.com/HeyPuter/puter.git
synced 2025-02-02 14:18:43 +08:00
parent
b534d678dc
commit
cee5af884e
@ -1,3 +0,0 @@
|
|||||||
.dockerignore
|
|
||||||
Dockerfile
|
|
||||||
node_modules
|
|
30
Dockerfile
30
Dockerfile
@ -1,30 +0,0 @@
|
|||||||
FROM node:21-alpine
|
|
||||||
|
|
||||||
# Set labels
|
|
||||||
LABEL repo="https://github.com/HeyPuter/puter"
|
|
||||||
LABEL license="AGPL-3.0,https://github.com/HeyPuter/puter/blob/master/LICENSE.txt"
|
|
||||||
LABEL version="v1.2.40-beta"
|
|
||||||
|
|
||||||
# Debugging
|
|
||||||
RUN apk add --no-cache bash # useful for debugging
|
|
||||||
|
|
||||||
# Setup working directory
|
|
||||||
RUN mkdir -p /opt/puter/app
|
|
||||||
WORKDIR /opt/puter/app
|
|
||||||
|
|
||||||
# Add source files
|
|
||||||
# NOTE: This might change (https://github.com/HeyPuter/puter/discussions/32)
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
# Set permissions
|
|
||||||
RUN chown -R node:node /opt/puter/app
|
|
||||||
USER node
|
|
||||||
|
|
||||||
# Install node modules
|
|
||||||
RUN npm cache clean --force \
|
|
||||||
&& npm install
|
|
||||||
|
|
||||||
EXPOSE 4000
|
|
||||||
|
|
||||||
|
|
||||||
CMD [ "npm", "start" ]
|
|
Loading…
Reference in New Issue
Block a user