Skip to content

Commit e0eed4a

Browse files
committed
Build for production in Docker
1 parent c16ed81 commit e0eed4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ COPY . .
1313

1414
# In the future, we can use https://github.com/yarnpkg/rfcs/pull/53 to make yarn use the node_modules
1515
# directly which should be fast as it is slow because it populates its own cache every time.
16-
RUN yarn && yarn task build:server:binary
16+
RUN yarn && NODE_ENV=production yarn task build:server:binary
1717

1818
# We deploy with ubuntu so that devs have a familiar environment.
1919
FROM ubuntu:18.10
@@ -30,5 +30,5 @@ RUN locale-gen en_US.UTF-8
3030
# We unfortunately cannot use update-locale because docker will not use the env variables
3131
# configured in /etc/default/locale so we need to set it manually.
3232
ENV LANG=en_US.UTF-8
33-
ENV LC_ALL=en_US.UTF-8
33+
ENV LC_ALL=en_US.UTF-8
3434
ENTRYPOINT ["code-server"]

0 commit comments

Comments
 (0)