mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 17:03:12 +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
|
# Create app directory
|
||||||
RUN apk add --no-cache httpie
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
# Set the default listening port
|
# Install app dependencies
|
||||||
ENV PORT 8080
|
|
||||||
|
|
||||||
# Command to start the server
|
# If you also need http-server globally
|
||||||
CMD http-server -p $PORT
|
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