Removed port env var from dockerfile.
This commit is contained in:
parent
5618b2bf27
commit
a49ea4fc8f
1 changed files with 1 additions and 2 deletions
|
@ -2,7 +2,6 @@ FROM node:10.14.2-alpine
|
||||||
|
|
||||||
# Set environment variables
|
# Set environment variables
|
||||||
ENV XBROWSERSYNC_API_VERSION 1.1.6
|
ENV XBROWSERSYNC_API_VERSION 1.1.6
|
||||||
ENV XBROWSERSYNC_API_PORT 8080
|
|
||||||
|
|
||||||
WORKDIR /usr/src/api
|
WORKDIR /usr/src/api
|
||||||
|
|
||||||
|
@ -17,5 +16,5 @@ RUN wget -q -O release.tar.gz https://github.com/xBrowserSync/api/archive/v$XBRO
|
||||||
RUN npm install --only=production
|
RUN npm install --only=production
|
||||||
|
|
||||||
# Expose port and start api
|
# Expose port and start api
|
||||||
EXPOSE $XBROWSERSYNC_API_PORT
|
EXPOSE 8080
|
||||||
CMD [ "node", "dist/api.js"]
|
CMD [ "node", "dist/api.js"]
|
Loading…
Reference in a new issue