mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 14:43:08 +02:00
feat: added http srever to dockerfile
This commit is contained in:
parent
dff7cc6474
commit
4abfd73e9d
19
Dockerfile
19
Dockerfile
@ -1,10 +1,15 @@
|
||||
FROM alpine:latest
|
||||
FROM node:latest
|
||||
|
||||
# Install dependencies
|
||||
RUN apk add --no-cache httpie
|
||||
# Create app directory
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Set the default listening port
|
||||
ENV PORT 8080
|
||||
# Install app dependencies
|
||||
|
||||
# Command to start the server
|
||||
CMD http-server -p $PORT
|
||||
# If you also need http-server globally
|
||||
RUN npm install -g http-server
|
||||
|
||||
# Bundle app source
|
||||
COPY . .
|
||||
|
||||
EXPOSE 8080
|
||||
CMD ["http-server", "-p 8080"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user