ok this seems to work
This commit is contained in:
parent
e725dce831
commit
15ffabebf3
6 changed files with 54 additions and 46 deletions
24
Dockerfile
24
Dockerfile
|
|
@ -1,13 +1,25 @@
|
|||
FROM node:20
|
||||
FROM debian:latest
|
||||
|
||||
# Install dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
curl gnupg2 ca-certificates lsb-release apt-transport-https \
|
||||
postgresql caddy nodejs npm && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Set up working directory for Express app
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 3000
|
||||
COPY caddy/Caddyfile /etc/caddy/Caddyfile
|
||||
|
||||
CMD ["npm", "start"]
|
||||
# Copy entrypoint script
|
||||
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
||||
RUN chmod +x /docker-entrypoint.sh
|
||||
|
||||
# Expose required ports
|
||||
EXPOSE 80 3000 5432
|
||||
|
||||
# Use the entrypoint script to start everything
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue